Documentation

Overview

Package area120tables provides access to the Area120 Tables API.

For product documentation, see: https://tables.area120.google.com

Creating a client

Usage example:

import "google.golang.org/api/area120tables/v1alpha1"
...
ctx := context.Background()
area120tablesService, err := area120tables.NewService(ctx)

In this example, Google Application Default Credentials are used for authentication.

For information on how to create and obtain Application Default Credentials, see https://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:

area120tablesService, err := area120tables.NewService(ctx, option.WithScopes(area120tables.TablesScope))

To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:

area120tablesService, err := area120tables.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, ...)
area120tablesService, err := area120tables.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

See https://godoc.org/google.golang.org/api/option/ for details on options.

Index

Constants

View Source
const (
	// See, edit, create, and delete all of your Google Drive files
	DriveScope = "https://www.googleapis.com/auth/drive"

	// View and manage Google Drive files and folders that you have opened
	// or created with this app
	DriveFileScope = "https://www.googleapis.com/auth/drive.file"

	// See and download all your Google Drive files
	DriveReadonlyScope = "https://www.googleapis.com/auth/drive.readonly"

	// See, edit, create, and delete your spreadsheets in Google Drive
	SpreadsheetsScope = "https://www.googleapis.com/auth/spreadsheets"

	// View your Google Spreadsheets
	SpreadsheetsReadonlyScope = "https://www.googleapis.com/auth/spreadsheets.readonly"

	// See, edit, create, and delete your tables in Tables by Area 120
	TablesScope = "https://www.googleapis.com/auth/tables"
)

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchCreateRowsRequest

type BatchCreateRowsRequest struct {
	// Requests: Required. The request message specifying the rows to
	// create. A maximum of 500 rows can be created in a single batch.
	Requests []*CreateRowRequest `json:"requests,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Requests") 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. "Requests") 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:"-"`
}

BatchCreateRowsRequest: Request message for TablesService.BatchCreateRows.

func (*BatchCreateRowsRequest) MarshalJSON

func (s *BatchCreateRowsRequest) MarshalJSON() ([]byte, error)

type BatchCreateRowsResponse

type BatchCreateRowsResponse struct {
	// Rows: The created rows.
	Rows []*Row `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. "Rows") 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. "Rows") 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:"-"`
}

BatchCreateRowsResponse: Response message for TablesService.BatchCreateRows.

func (*BatchCreateRowsResponse) MarshalJSON

func (s *BatchCreateRowsResponse) MarshalJSON() ([]byte, error)

type BatchUpdateRowsRequest

type BatchUpdateRowsRequest struct {
	// Requests: Required. The request messages specifying the rows to
	// update. A maximum of 500 rows can be modified in a single batch.
	Requests []*UpdateRowRequest `json:"requests,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Requests") 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. "Requests") 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:"-"`
}

BatchUpdateRowsRequest: Request message for TablesService.BatchUpdateRows.

func (*BatchUpdateRowsRequest) MarshalJSON

func (s *BatchUpdateRowsRequest) MarshalJSON() ([]byte, error)

type BatchUpdateRowsResponse

type BatchUpdateRowsResponse struct {
	// Rows: The updated rows.
	Rows []*Row `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. "Rows") 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. "Rows") 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:"-"`
}

BatchUpdateRowsResponse: Response message for TablesService.BatchUpdateRows.

func (*BatchUpdateRowsResponse) MarshalJSON

func (s *BatchUpdateRowsResponse) MarshalJSON() ([]byte, error)

type ColumnDescription

type ColumnDescription struct {
	// DataType: Data type of the column Supported types are auto_id,
	// boolean, boolean_list, creator, create_timestamp, date, dropdown,
	// location, integer, integer_list, number, number_list, person,
	// person_list, tags, check_list, text, text_list, update_timestamp,
	// updater, relationship, file_attachment_list. These types directly map
	// to the column types supported on Tables website.
	DataType string `json:"dataType,omitempty"`

	// Id: Internal id for a column.
	Id string `json:"id,omitempty"`

	// Labels: Optional. Range of labeled values for the column. Some
	// columns like tags and drop-downs limit the values to a set of
	// possible values. We return the range of values in such cases to help
	// clients implement better user data validation.
	Labels []*LabeledItem `json:"labels,omitempty"`

	// LookupDetails: Optional. Indicates that this is a lookup column whose
	// value is derived from the relationship column specified in the
	// details. Lookup columns can not be updated directly. To change the
	// value you must update the associated relationship column.
	LookupDetails *LookupDetails `json:"lookupDetails,omitempty"`

	// Name: column name
	Name string `json:"name,omitempty"`

	// RelationshipDetails: Optional. Additional details about a
	// relationship column. Specified when data_type is relationship.
	RelationshipDetails *RelationshipDetails `json:"relationshipDetails,omitempty"`

	// ForceSendFields is a list of field names (e.g. "DataType") 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. "DataType") 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:"-"`
}

ColumnDescription: Details on a column in the table.

func (*ColumnDescription) MarshalJSON

func (s *ColumnDescription) MarshalJSON() ([]byte, error)

type CreateRowRequest

type CreateRowRequest struct {
	// Parent: Required. The parent table where this row will be created.
	// Format: tables/{table}
	Parent string `json:"parent,omitempty"`

	// Row: Required. The row to create.
	Row *Row `json:"row,omitempty"`

	// View: Optional. Column key to use for values in the row. Defaults to
	// user entered name.
	//
	// Possible values:
	//   "VIEW_UNSPECIFIED" - Defaults to user entered text.
	//   "COLUMN_ID_VIEW" - Uses internally generated column id to identify
	// values.
	View string `json:"view,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Parent") 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. "Parent") 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:"-"`
}

CreateRowRequest: Request message for TablesService.CreateRow.

func (*CreateRowRequest) MarshalJSON

func (s *CreateRowRequest) MarshalJSON() ([]byte, error)

type Empty

type Empty struct {
	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`
}

Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.

type LabeledItem

type LabeledItem struct {
	// Id: Internal id associated with the item.
	Id string `json:"id,omitempty"`

	// Name: Display string as entered by user.
	Name string `json:"name,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Id") 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. "Id") 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:"-"`
}

LabeledItem: A single item in a labeled column.

func (*LabeledItem) MarshalJSON

func (s *LabeledItem) MarshalJSON() ([]byte, error)

type ListRowsResponse

type ListRowsResponse struct {
	// NextPageToken: A token, which can be sent as `page_token` to retrieve
	// the next page. If this field is empty, there are no subsequent pages.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// Rows: The rows from the specified table.
	Rows []*Row `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. "NextPageToken") 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. "NextPageToken") 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:"-"`
}

ListRowsResponse: Response message for TablesService.ListRows.

func (*ListRowsResponse) MarshalJSON

func (s *ListRowsResponse) MarshalJSON() ([]byte, error)

type ListTablesResponse

type ListTablesResponse struct {
	// NextPageToken: A token, which can be sent as `page_token` to retrieve
	// the next page. If this field is empty, there are no subsequent pages.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// Tables: The list of tables.
	Tables []*Table `json:"tables,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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:"-"`
}

ListTablesResponse: Response message for TablesService.ListTables.

func (*ListTablesResponse) MarshalJSON

func (s *ListTablesResponse) MarshalJSON() ([]byte, error)

type ListWorkspacesResponse

type ListWorkspacesResponse struct {
	// NextPageToken: A token, which can be sent as `page_token` to retrieve
	// the next page. If this field is empty, there are no subsequent pages.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// Workspaces: The list of workspaces.
	Workspaces []*Workspace `json:"workspaces,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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:"-"`
}

ListWorkspacesResponse: Response message for TablesService.ListWorkspaces.

func (*ListWorkspacesResponse) MarshalJSON

func (s *ListWorkspacesResponse) MarshalJSON() ([]byte, error)

type LookupDetails

type LookupDetails struct {
	// RelationshipColumn: The name of the relationship column associated
	// with the lookup.
	RelationshipColumn string `json:"relationshipColumn,omitempty"`

	// RelationshipColumnId: The id of the relationship column.
	RelationshipColumnId string `json:"relationshipColumnId,omitempty"`

	// ForceSendFields is a list of field names (e.g. "RelationshipColumn")
	// 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. "RelationshipColumn") 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:"-"`
}

LookupDetails: Details about a lookup column whose value comes from the associated relationship.

func (*LookupDetails) MarshalJSON

func (s *LookupDetails) MarshalJSON() ([]byte, error)

type RelationshipDetails

type RelationshipDetails struct {
	// LinkedTable: The name of the table this relationship is linked to.
	LinkedTable string `json:"linkedTable,omitempty"`

	// ForceSendFields is a list of field names (e.g. "LinkedTable") 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. "LinkedTable") 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:"-"`
}

RelationshipDetails: Details about a relationship column.

func (*RelationshipDetails) MarshalJSON

func (s *RelationshipDetails) MarshalJSON() ([]byte, error)

type Row

type Row struct {
	// Name: The resource name of the row. Row names have the form
	// `tables/{table}/rows/{row}`. The name is ignored when creating a row.
	Name string `json:"name,omitempty"`

	// Values: The values of the row. This is a map of column key to value.
	// Key is user entered name(default) or the internal column id based on
	// the view in the request.
	Values googleapi.RawMessage `json:"values,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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:"-"`
}

Row: A single row in a table.

func (*Row) MarshalJSON

func (s *Row) MarshalJSON() ([]byte, error)

type Service

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

	Tables *TablesService

	Workspaces *WorkspacesService
	// contains filtered or unexported fields
}

func New

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

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.

func NewService

func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error)

NewService creates a new Service.

type Table

type Table struct {
	// Columns: List of columns in this table. Order of columns matches the
	// display order.
	Columns []*ColumnDescription `json:"columns,omitempty"`

	// DisplayName: The human readable title of the table.
	DisplayName string `json:"displayName,omitempty"`

	// Name: The resource name of the table. Table names have the form
	// `tables/{table}`.
	Name string `json:"name,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:"-"`
}

Table: A single table.

func (*Table) MarshalJSON

func (s *Table) MarshalJSON() ([]byte, error)

type TablesGetCall

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

func (*TablesGetCall) Context

func (c *TablesGetCall) Context(ctx context.Context) *TablesGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TablesGetCall) Do

func (c *TablesGetCall) Do(opts ...googleapi.CallOption) (*Table, error)

Do executes the "area120tables.tables.get" call. Exactly one of *Table or error will be non-nil. Any non-2xx status code 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 to check whether the returned error was because http.StatusNotModified was returned.

func (*TablesGetCall) Fields

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

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

func (*TablesGetCall) Header

func (c *TablesGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*TablesGetCall) IfNoneMatch

func (c *TablesGetCall) IfNoneMatch(entityTag string) *TablesGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type TablesListCall

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

func (*TablesListCall) Context

func (c *TablesListCall) Context(ctx context.Context) *TablesListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TablesListCall) Do

Do executes the "area120tables.tables.list" call. Exactly one of *ListTablesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListTablesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TablesListCall) Fields

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

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

func (*TablesListCall) Header

func (c *TablesListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*TablesListCall) IfNoneMatch

func (c *TablesListCall) IfNoneMatch(entityTag string) *TablesListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*TablesListCall) PageSize

func (c *TablesListCall) PageSize(pageSize int64) *TablesListCall

PageSize sets the optional parameter "pageSize": The maximum number of tables to return. The service may return fewer than this value. If unspecified, at most 20 tables are returned. The maximum value is 100; values above 100 are coerced to 100.

func (*TablesListCall) PageToken

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

PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListTables` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListTables` must match the call that provided the page token.

func (*TablesListCall) Pages

func (c *TablesListCall) Pages(ctx context.Context, f func(*ListTablesResponse) 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.

type TablesRowsBatchCreateCall

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

func (*TablesRowsBatchCreateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TablesRowsBatchCreateCall) Do

Do executes the "area120tables.tables.rows.batchCreate" call. Exactly one of *BatchCreateRowsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *BatchCreateRowsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TablesRowsBatchCreateCall) Fields

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

func (*TablesRowsBatchCreateCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type TablesRowsBatchUpdateCall

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

func (*TablesRowsBatchUpdateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TablesRowsBatchUpdateCall) Do

Do executes the "area120tables.tables.rows.batchUpdate" call. Exactly one of *BatchUpdateRowsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *BatchUpdateRowsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TablesRowsBatchUpdateCall) Fields

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

func (*TablesRowsBatchUpdateCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type TablesRowsCreateCall

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

func (*TablesRowsCreateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TablesRowsCreateCall) Do

func (c *TablesRowsCreateCall) Do(opts ...googleapi.CallOption) (*Row, error)

Do executes the "area120tables.tables.rows.create" call. Exactly one of *Row or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Row.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TablesRowsCreateCall) Fields

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

func (*TablesRowsCreateCall) Header

func (c *TablesRowsCreateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*TablesRowsCreateCall) View

View sets the optional parameter "view": Column key to use for values in the row. Defaults to user entered name.

Possible values:

"VIEW_UNSPECIFIED" - Defaults to user entered text.
"COLUMN_ID_VIEW" - Uses internally generated column id to identify

values.

type TablesRowsDeleteCall

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

func (*TablesRowsDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TablesRowsDeleteCall) Do

Do executes the "area120tables.tables.rows.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TablesRowsDeleteCall) Fields

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

func (*TablesRowsDeleteCall) Header

func (c *TablesRowsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type TablesRowsGetCall

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

func (*TablesRowsGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TablesRowsGetCall) Do

func (c *TablesRowsGetCall) Do(opts ...googleapi.CallOption) (*Row, error)

Do executes the "area120tables.tables.rows.get" call. Exactly one of *Row or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Row.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TablesRowsGetCall) Fields

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

func (*TablesRowsGetCall) Header

func (c *TablesRowsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*TablesRowsGetCall) IfNoneMatch

func (c *TablesRowsGetCall) IfNoneMatch(entityTag string) *TablesRowsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*TablesRowsGetCall) View

View sets the optional parameter "view": Column key to use for values in the row. Defaults to user entered name.

Possible values:

"VIEW_UNSPECIFIED" - Defaults to user entered text.
"COLUMN_ID_VIEW" - Uses internally generated column id to identify

values.

type TablesRowsListCall

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

func (*TablesRowsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TablesRowsListCall) Do

Do executes the "area120tables.tables.rows.list" call. Exactly one of *ListRowsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListRowsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TablesRowsListCall) Fields

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

func (*TablesRowsListCall) Header

func (c *TablesRowsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*TablesRowsListCall) IfNoneMatch

func (c *TablesRowsListCall) IfNoneMatch(entityTag string) *TablesRowsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*TablesRowsListCall) PageSize

func (c *TablesRowsListCall) PageSize(pageSize int64) *TablesRowsListCall

PageSize sets the optional parameter "pageSize": The maximum number of rows to return. The service may return fewer than this value. If unspecified, at most 50 rows are returned. The maximum value is 1,000; values above 1,000 are coerced to 1,000.

func (*TablesRowsListCall) PageToken

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

PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListRows` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListRows` must match the call that provided the page token.

func (*TablesRowsListCall) 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 (*TablesRowsListCall) View

View sets the optional parameter "view": Column key to use for values in the row. Defaults to user entered name.

Possible values:

"VIEW_UNSPECIFIED" - Defaults to user entered text.
"COLUMN_ID_VIEW" - Uses internally generated column id to identify

values.

type TablesRowsPatchCall

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

func (*TablesRowsPatchCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TablesRowsPatchCall) Do

func (c *TablesRowsPatchCall) Do(opts ...googleapi.CallOption) (*Row, error)

Do executes the "area120tables.tables.rows.patch" call. Exactly one of *Row or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Row.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TablesRowsPatchCall) Fields

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

func (*TablesRowsPatchCall) Header

func (c *TablesRowsPatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*TablesRowsPatchCall) UpdateMask

func (c *TablesRowsPatchCall) UpdateMask(updateMask string) *TablesRowsPatchCall

UpdateMask sets the optional parameter "updateMask": The list of fields to update.

func (*TablesRowsPatchCall) View

View sets the optional parameter "view": Column key to use for values in the row. Defaults to user entered name.

Possible values:

"VIEW_UNSPECIFIED" - Defaults to user entered text.
"COLUMN_ID_VIEW" - Uses internally generated column id to identify

values.

type TablesRowsService

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

func NewTablesRowsService

func NewTablesRowsService(s *Service) *TablesRowsService

func (*TablesRowsService) BatchCreate

func (r *TablesRowsService) BatchCreate(parent string, batchcreaterowsrequest *BatchCreateRowsRequest) *TablesRowsBatchCreateCall

BatchCreate: Creates multiple rows.

func (*TablesRowsService) BatchUpdate

func (r *TablesRowsService) BatchUpdate(parent string, batchupdaterowsrequest *BatchUpdateRowsRequest) *TablesRowsBatchUpdateCall

BatchUpdate: Updates multiple rows.

func (*TablesRowsService) Create

func (r *TablesRowsService) Create(parent string, row *Row) *TablesRowsCreateCall

Create: Creates a row.

func (*TablesRowsService) Delete

Delete: Deletes a row.

func (*TablesRowsService) Get

Get: Gets a row. Returns NOT_FOUND if the row does not exist in the table.

func (*TablesRowsService) List

func (r *TablesRowsService) List(parent string) *TablesRowsListCall

List: Lists rows in a table. Returns NOT_FOUND if the table does not exist.

func (*TablesRowsService) Patch

func (r *TablesRowsService) Patch(name string, row *Row) *TablesRowsPatchCall

Patch: Updates a row.

type TablesService

type TablesService struct {
	Rows *TablesRowsService
	// contains filtered or unexported fields
}

func NewTablesService

func NewTablesService(s *Service) *TablesService

func (*TablesService) Get

func (r *TablesService) Get(name string) *TablesGetCall

Get: Gets a table. Returns NOT_FOUND if the table does not exist.

func (*TablesService) List

func (r *TablesService) List() *TablesListCall

List: Lists tables for the user.

type UpdateRowRequest

type UpdateRowRequest struct {
	// Row: Required. The row to update.
	Row *Row `json:"row,omitempty"`

	// UpdateMask: The list of fields to update.
	UpdateMask string `json:"updateMask,omitempty"`

	// View: Optional. Column key to use for values in the row. Defaults to
	// user entered name.
	//
	// Possible values:
	//   "VIEW_UNSPECIFIED" - Defaults to user entered text.
	//   "COLUMN_ID_VIEW" - Uses internally generated column id to identify
	// values.
	View string `json:"view,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Row") 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. "Row") 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:"-"`
}

UpdateRowRequest: Request message for TablesService.UpdateRow.

func (*UpdateRowRequest) MarshalJSON

func (s *UpdateRowRequest) MarshalJSON() ([]byte, error)

type Workspace

type Workspace struct {
	// DisplayName: The human readable title of the workspace.
	DisplayName string `json:"displayName,omitempty"`

	// Name: The resource name of the workspace. Workspace names have the
	// form `workspaces/{workspace}`.
	Name string `json:"name,omitempty"`

	// Tables: The list of tables in the workspace.
	Tables []*Table `json:"tables,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "DisplayName") 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. "DisplayName") 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:"-"`
}

Workspace: A single workspace.

func (*Workspace) MarshalJSON

func (s *Workspace) MarshalJSON() ([]byte, error)

type WorkspacesGetCall

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

func (*WorkspacesGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*WorkspacesGetCall) Do

Do executes the "area120tables.workspaces.get" call. Exactly one of *Workspace or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Workspace.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*WorkspacesGetCall) Fields

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

func (*WorkspacesGetCall) Header

func (c *WorkspacesGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*WorkspacesGetCall) IfNoneMatch

func (c *WorkspacesGetCall) IfNoneMatch(entityTag string) *WorkspacesGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type WorkspacesListCall

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

func (*WorkspacesListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*WorkspacesListCall) Do

Do executes the "area120tables.workspaces.list" call. Exactly one of *ListWorkspacesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListWorkspacesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*WorkspacesListCall) Fields

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

func (*WorkspacesListCall) Header

func (c *WorkspacesListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*WorkspacesListCall) IfNoneMatch

func (c *WorkspacesListCall) IfNoneMatch(entityTag string) *WorkspacesListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*WorkspacesListCall) PageSize

func (c *WorkspacesListCall) PageSize(pageSize int64) *WorkspacesListCall

PageSize sets the optional parameter "pageSize": The maximum number of workspaces to return. The service may return fewer than this value. If unspecified, at most 10 workspaces are returned. The maximum value is 25; values above 25 are coerced to 25.

func (*WorkspacesListCall) PageToken

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

PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListWorkspaces` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListWorkspaces` must match the call that provided the page token.

func (*WorkspacesListCall) 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.

type WorkspacesService

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

func NewWorkspacesService

func NewWorkspacesService(s *Service) *WorkspacesService

func (*WorkspacesService) Get

Get: Gets a workspace. Returns NOT_FOUND if the workspace does not exist.

func (*WorkspacesService) List

List: Lists workspaces for the user.