area120tables
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 area120tables provides access to the Area120 Tables API.
For product documentation, see:https://support.google.com/area120-tables/answer/10011390
Library status¶
These client libraries are officially supported by Google. However, thislibrary is considered complete and is in maintenance mode. This meansthat we will address critical bugs and security issues but will not addany new features.
When possible, we recommend using our newer[Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)that are still actively being worked and iterated on.
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 forauthentication. For information on how to create and obtain ApplicationDefault 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, usegoogle.golang.org/api/option.WithScopes:
area120tablesService, err := area120tables.NewService(ctx, option.WithScopes(area120tables.TablesScope))
To use an API key for authentication (note: some APIs do not support APIkeys), usegoogle.golang.org/api/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 OAuthflow, usegoogle.golang.org/api/option.WithTokenSource:
config := &oauth2.Config{...}// ...token, err := config.Exchange(ctx, ...)area120tablesService, err := area120tables.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))Seegoogle.golang.org/api/option.ClientOption for details on options.
Index¶
- Constants
- type BatchCreateRowsRequest
- type BatchCreateRowsResponse
- type BatchDeleteRowsRequest
- type BatchUpdateRowsRequest
- type BatchUpdateRowsResponse
- type ColumnDescription
- type CreateRowRequest
- type DateDetails
- type Empty
- type LabeledItem
- type ListRowsResponse
- type ListTablesResponse
- type ListWorkspacesResponse
- type LookupDetails
- type RelationshipDetails
- type Row
- type SavedView
- type Service
- type Table
- type TablesGetCall
- func (c *TablesGetCall) Context(ctx context.Context) *TablesGetCall
- func (c *TablesGetCall) Do(opts ...googleapi.CallOption) (*Table, error)
- func (c *TablesGetCall) Fields(s ...googleapi.Field) *TablesGetCall
- func (c *TablesGetCall) Header() http.Header
- func (c *TablesGetCall) IfNoneMatch(entityTag string) *TablesGetCall
- type TablesListCall
- func (c *TablesListCall) Context(ctx context.Context) *TablesListCall
- func (c *TablesListCall) Do(opts ...googleapi.CallOption) (*ListTablesResponse, error)
- func (c *TablesListCall) Fields(s ...googleapi.Field) *TablesListCall
- func (c *TablesListCall) Header() http.Header
- func (c *TablesListCall) IfNoneMatch(entityTag string) *TablesListCall
- func (c *TablesListCall) OrderBy(orderBy string) *TablesListCall
- func (c *TablesListCall) PageSize(pageSize int64) *TablesListCall
- func (c *TablesListCall) PageToken(pageToken string) *TablesListCall
- func (c *TablesListCall) Pages(ctx context.Context, f func(*ListTablesResponse) error) error
- type TablesRowsBatchCreateCall
- func (c *TablesRowsBatchCreateCall) Context(ctx context.Context) *TablesRowsBatchCreateCall
- func (c *TablesRowsBatchCreateCall) Do(opts ...googleapi.CallOption) (*BatchCreateRowsResponse, error)
- func (c *TablesRowsBatchCreateCall) Fields(s ...googleapi.Field) *TablesRowsBatchCreateCall
- func (c *TablesRowsBatchCreateCall) Header() http.Header
- type TablesRowsBatchDeleteCall
- func (c *TablesRowsBatchDeleteCall) Context(ctx context.Context) *TablesRowsBatchDeleteCall
- func (c *TablesRowsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *TablesRowsBatchDeleteCall) Fields(s ...googleapi.Field) *TablesRowsBatchDeleteCall
- func (c *TablesRowsBatchDeleteCall) Header() http.Header
- type TablesRowsBatchUpdateCall
- func (c *TablesRowsBatchUpdateCall) Context(ctx context.Context) *TablesRowsBatchUpdateCall
- func (c *TablesRowsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*BatchUpdateRowsResponse, error)
- func (c *TablesRowsBatchUpdateCall) Fields(s ...googleapi.Field) *TablesRowsBatchUpdateCall
- func (c *TablesRowsBatchUpdateCall) Header() http.Header
- type TablesRowsCreateCall
- func (c *TablesRowsCreateCall) Context(ctx context.Context) *TablesRowsCreateCall
- func (c *TablesRowsCreateCall) Do(opts ...googleapi.CallOption) (*Row, error)
- func (c *TablesRowsCreateCall) Fields(s ...googleapi.Field) *TablesRowsCreateCall
- func (c *TablesRowsCreateCall) Header() http.Header
- func (c *TablesRowsCreateCall) View(view string) *TablesRowsCreateCall
- type TablesRowsDeleteCall
- type TablesRowsGetCall
- func (c *TablesRowsGetCall) Context(ctx context.Context) *TablesRowsGetCall
- func (c *TablesRowsGetCall) Do(opts ...googleapi.CallOption) (*Row, error)
- func (c *TablesRowsGetCall) Fields(s ...googleapi.Field) *TablesRowsGetCall
- func (c *TablesRowsGetCall) Header() http.Header
- func (c *TablesRowsGetCall) IfNoneMatch(entityTag string) *TablesRowsGetCall
- func (c *TablesRowsGetCall) View(view string) *TablesRowsGetCall
- type TablesRowsListCall
- func (c *TablesRowsListCall) Context(ctx context.Context) *TablesRowsListCall
- func (c *TablesRowsListCall) Do(opts ...googleapi.CallOption) (*ListRowsResponse, error)
- func (c *TablesRowsListCall) Fields(s ...googleapi.Field) *TablesRowsListCall
- func (c *TablesRowsListCall) Filter(filter string) *TablesRowsListCall
- func (c *TablesRowsListCall) Header() http.Header
- func (c *TablesRowsListCall) IfNoneMatch(entityTag string) *TablesRowsListCall
- func (c *TablesRowsListCall) OrderBy(orderBy string) *TablesRowsListCall
- func (c *TablesRowsListCall) PageSize(pageSize int64) *TablesRowsListCall
- func (c *TablesRowsListCall) PageToken(pageToken string) *TablesRowsListCall
- func (c *TablesRowsListCall) Pages(ctx context.Context, f func(*ListRowsResponse) error) error
- func (c *TablesRowsListCall) View(view string) *TablesRowsListCall
- type TablesRowsPatchCall
- func (c *TablesRowsPatchCall) Context(ctx context.Context) *TablesRowsPatchCall
- func (c *TablesRowsPatchCall) Do(opts ...googleapi.CallOption) (*Row, error)
- func (c *TablesRowsPatchCall) Fields(s ...googleapi.Field) *TablesRowsPatchCall
- func (c *TablesRowsPatchCall) Header() http.Header
- func (c *TablesRowsPatchCall) UpdateMask(updateMask string) *TablesRowsPatchCall
- func (c *TablesRowsPatchCall) View(view string) *TablesRowsPatchCall
- type TablesRowsService
- func (r *TablesRowsService) BatchCreate(parent string, batchcreaterowsrequest *BatchCreateRowsRequest) *TablesRowsBatchCreateCall
- func (r *TablesRowsService) BatchDelete(parent string, batchdeleterowsrequest *BatchDeleteRowsRequest) *TablesRowsBatchDeleteCall
- func (r *TablesRowsService) BatchUpdate(parent string, batchupdaterowsrequest *BatchUpdateRowsRequest) *TablesRowsBatchUpdateCall
- func (r *TablesRowsService) Create(parent string, row *Row) *TablesRowsCreateCall
- func (r *TablesRowsService) Delete(name string) *TablesRowsDeleteCall
- func (r *TablesRowsService) Get(name string) *TablesRowsGetCall
- func (r *TablesRowsService) List(parent string) *TablesRowsListCall
- func (r *TablesRowsService) Patch(name string, row *Row) *TablesRowsPatchCall
- type TablesService
- type UpdateRowRequest
- type Workspace
- type WorkspacesGetCall
- func (c *WorkspacesGetCall) Context(ctx context.Context) *WorkspacesGetCall
- func (c *WorkspacesGetCall) Do(opts ...googleapi.CallOption) (*Workspace, error)
- func (c *WorkspacesGetCall) Fields(s ...googleapi.Field) *WorkspacesGetCall
- func (c *WorkspacesGetCall) Header() http.Header
- func (c *WorkspacesGetCall) IfNoneMatch(entityTag string) *WorkspacesGetCall
- type WorkspacesListCall
- func (c *WorkspacesListCall) Context(ctx context.Context) *WorkspacesListCall
- func (c *WorkspacesListCall) Do(opts ...googleapi.CallOption) (*ListWorkspacesResponse, error)
- func (c *WorkspacesListCall) Fields(s ...googleapi.Field) *WorkspacesListCall
- func (c *WorkspacesListCall) Header() http.Header
- func (c *WorkspacesListCall) IfNoneMatch(entityTag string) *WorkspacesListCall
- func (c *WorkspacesListCall) PageSize(pageSize int64) *WorkspacesListCall
- func (c *WorkspacesListCall) PageToken(pageToken string) *WorkspacesListCall
- func (c *WorkspacesListCall) Pages(ctx context.Context, f func(*ListWorkspacesResponse) error) error
- type WorkspacesService
Constants¶
const (// See, edit, create, and delete all of your Google Drive filesDriveScope = "https://www.googleapis.com/auth/drive"// See, edit, create, and delete only the specific Google Drive files you use// with this appDriveFileScope = "https://www.googleapis.com/auth/drive.file"// See and download all your Google Drive filesDriveReadonlyScope = "https://www.googleapis.com/auth/drive.readonly"// See, edit, create, and delete all your Google Sheets spreadsheetsSpreadsheetsScope = "https://www.googleapis.com/auth/spreadsheets"// See all your Google Sheets spreadsheetsSpreadsheetsReadonlyScope = "https://www.googleapis.com/auth/spreadsheets.readonly"// See, edit, create, and delete your tables in Tables by Area 120TablesScope = "https://www.googleapis.com/auth/tables")
OAuth2 scopes used by this API.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeBatchCreateRowsRequest¶
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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}BatchCreateRowsRequest: Request message for TablesService.BatchCreateRows.
func (BatchCreateRowsRequest)MarshalJSON¶
func (sBatchCreateRowsRequest) MarshalJSON() ([]byte,error)
typeBatchCreateRowsResponse¶
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 or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}BatchCreateRowsResponse: Response message for TablesService.BatchCreateRows.
func (BatchCreateRowsResponse)MarshalJSON¶
func (sBatchCreateRowsResponse) MarshalJSON() ([]byte,error)
typeBatchDeleteRowsRequest¶added inv0.37.0
type BatchDeleteRowsRequest struct {// Names: Required. The names of the rows to delete. All rows must belong to// the parent table or else the entire batch will fail. A maximum of 500 rows// can be deleted in a batch. Format: tables/{table}/rows/{row}Names []string `json:"names,omitempty"`// ForceSendFields is a list of field names (e.g. "Names") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Names") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}BatchDeleteRowsRequest: Request message for TablesService.BatchDeleteRows
func (BatchDeleteRowsRequest)MarshalJSON¶added inv0.37.0
func (sBatchDeleteRowsRequest) MarshalJSON() ([]byte,error)
typeBatchUpdateRowsRequest¶
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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}BatchUpdateRowsRequest: Request message for TablesService.BatchUpdateRows.
func (BatchUpdateRowsRequest)MarshalJSON¶
func (sBatchUpdateRowsRequest) MarshalJSON() ([]byte,error)
typeBatchUpdateRowsResponse¶
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 or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}BatchUpdateRowsResponse: Response message for TablesService.BatchUpdateRows.
func (BatchUpdateRowsResponse)MarshalJSON¶
func (sBatchUpdateRowsResponse) MarshalJSON() ([]byte,error)
typeColumnDescription¶
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.DataTypestring `json:"dataType,omitempty"`// DateDetails: Optional. Additional details about a date column.DateDetails *DateDetails `json:"dateDetails,omitempty"`// Id: Internal id for a column.Idstring `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"`// MultipleValuesDisallowed: Optional. Indicates whether or not multiple values// are allowed for array types where such a restriction is possible.MultipleValuesDisallowedbool `json:"multipleValuesDisallowed,omitempty"`// Name: column nameNamestring `json:"name,omitempty"`// Readonly: Optional. Indicates that values for the column cannot be set by// the user.Readonlybool `json:"readonly,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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ColumnDescription: Details on a column in the table.
func (ColumnDescription)MarshalJSON¶
func (sColumnDescription) MarshalJSON() ([]byte,error)
typeCreateRowRequest¶
type CreateRowRequest struct {// Parent: Required. The parent table where this row will be created. Format:// tables/{table}Parentstring `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.Viewstring `json:"view,omitempty"`// ForceSendFields is a list of field names (e.g. "Parent") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}CreateRowRequest: Request message for TablesService.CreateRow.
func (CreateRowRequest)MarshalJSON¶
func (sCreateRowRequest) MarshalJSON() ([]byte,error)
typeDateDetails¶added inv0.59.0
type DateDetails struct {// HasTime: Whether the date column includes time.HasTimebool `json:"hasTime,omitempty"`// ForceSendFields is a list of field names (e.g. "HasTime") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "HasTime") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}DateDetails: Details about a date column.
func (DateDetails)MarshalJSON¶added inv0.59.0
func (sDateDetails) MarshalJSON() ([]byte,error)
typeEmpty¶
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 definingduplicated empty messages in your APIs. A typical example is to use it asthe request or the response type of an API method. For instance: service Foo{ rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
typeLabeledItem¶
type LabeledItem struct {// Id: Internal id associated with the item.Idstring `json:"id,omitempty"`// Name: Display string as entered by user.Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "Id") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}LabeledItem: A single item in a labeled column.
func (LabeledItem)MarshalJSON¶
func (sLabeledItem) MarshalJSON() ([]byte,error)
typeListRowsResponse¶
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.NextPageTokenstring `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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ListRowsResponse: Response message for TablesService.ListRows.
func (ListRowsResponse)MarshalJSON¶
func (sListRowsResponse) MarshalJSON() ([]byte,error)
typeListTablesResponse¶
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.NextPageTokenstring `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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ListTablesResponse: Response message for TablesService.ListTables.
func (ListTablesResponse)MarshalJSON¶
func (sListTablesResponse) MarshalJSON() ([]byte,error)
typeListWorkspacesResponse¶added inv0.35.0
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.NextPageTokenstring `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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ListWorkspacesResponse: Response message for TablesService.ListWorkspaces.
func (ListWorkspacesResponse)MarshalJSON¶added inv0.35.0
func (sListWorkspacesResponse) MarshalJSON() ([]byte,error)
typeLookupDetails¶
type LookupDetails struct {// RelationshipColumn: The name of the relationship column associated with the// lookup.RelationshipColumnstring `json:"relationshipColumn,omitempty"`// RelationshipColumnId: The id of the relationship column.RelationshipColumnIdstring `json:"relationshipColumnId,omitempty"`// ForceSendFields is a list of field names (e.g. "RelationshipColumn") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}LookupDetails: Details about a lookup column whose value comes from theassociated relationship.
func (LookupDetails)MarshalJSON¶
func (sLookupDetails) MarshalJSON() ([]byte,error)
typeRelationshipDetails¶
type RelationshipDetails struct {// LinkedTable: The name of the table this relationship is linked to.LinkedTablestring `json:"linkedTable,omitempty"`// ForceSendFields is a list of field names (e.g. "LinkedTable") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}RelationshipDetails: Details about a relationship column.
func (RelationshipDetails)MarshalJSON¶
func (sRelationshipDetails) MarshalJSON() ([]byte,error)
typeRow¶
type Row struct {// CreateTime: Time when the row was created.CreateTimestring `json:"createTime,omitempty"`// Name: The resource name of the row. Row names have the form// `tables/{table}/rows/{row}`. The name is ignored when creating a row.Namestring `json:"name,omitempty"`// UpdateTime: Time when the row was last updated.UpdateTimestring `json:"updateTime,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.Valuesgoogleapi.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. "CreateTime") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CreateTime") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Row: A single row in a table.
func (Row)MarshalJSON¶
typeSavedView¶added inv0.46.0
type SavedView struct {// Id: Internal id associated with the saved view.Idstring `json:"id,omitempty"`// Name: Display name of the saved view.Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "Id") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}SavedView: A saved view of a table. NextId: 3
func (SavedView)MarshalJSON¶added inv0.46.0
typeService¶
type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentTables *TablesServiceWorkspaces *WorkspacesService// 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¶
NewService creates a new Service.
typeTable¶
type Table struct {// Columns: List of columns in this table. Order of columns matches the display// order.Columns []*ColumnDescription `json:"columns,omitempty"`// CreateTime: Time when the table was created.CreateTimestring `json:"createTime,omitempty"`// DisplayName: The human readable title of the table.DisplayNamestring `json:"displayName,omitempty"`// Name: The resource name of the table. Table names have the form// `tables/{table}`.Namestring `json:"name,omitempty"`// SavedViews: Saved views for this table.SavedViews []*SavedView `json:"savedViews,omitempty"`// TimeZone: The time zone of the table. IANA Time Zone Database time zone,// e.g. "America/New_York".TimeZonestring `json:"timeZone,omitempty"`// UpdateTime: Time when the table was last updated excluding updates to// individual rowsUpdateTimestring `json:"updateTime,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 or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Table: A single table. NextId: 8
func (Table)MarshalJSON¶
typeTablesGetCall¶
type TablesGetCall struct {// contains filtered or unexported fields}func (*TablesGetCall)Context¶
func (c *TablesGetCall) Context(ctxcontext.Context) *TablesGetCall
Context sets the context to be used in this call's Do method.
func (*TablesGetCall)Do¶
func (c *TablesGetCall) Do(opts ...googleapi.CallOption) (*Table,error)
Do executes the "area120tables.tables.get" call.Any non-2xx status code is an error. Response headers are in either*Table.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 was returned.
func (*TablesGetCall)Fields¶
func (c *TablesGetCall) Fields(s ...googleapi.Field) *TablesGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*TablesGetCall)Header¶
func (c *TablesGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*TablesGetCall)IfNoneMatch¶
func (c *TablesGetCall) IfNoneMatch(entityTagstring) *TablesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeTablesListCall¶
type TablesListCall struct {// contains filtered or unexported fields}func (*TablesListCall)Context¶
func (c *TablesListCall) Context(ctxcontext.Context) *TablesListCall
Context sets the context to be used in this call's Do method.
func (*TablesListCall)Do¶
func (c *TablesListCall) Do(opts ...googleapi.CallOption) (*ListTablesResponse,error)
Do executes the "area120tables.tables.list" call.Any non-2xx status code is an error. Response headers are in either*ListTablesResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*TablesListCall)Fields¶
func (c *TablesListCall) Fields(s ...googleapi.Field) *TablesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*TablesListCall)Header¶
func (c *TablesListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*TablesListCall)IfNoneMatch¶
func (c *TablesListCall) IfNoneMatch(entityTagstring) *TablesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*TablesListCall)OrderBy¶added inv0.46.0
func (c *TablesListCall) OrderBy(orderBystring) *TablesListCall
OrderBy sets the optional parameter "orderBy": Sorting order for the list oftables on createTime/updateTime.
func (*TablesListCall)PageSize¶
func (c *TablesListCall) PageSize(pageSizeint64) *TablesListCall
PageSize sets the optional parameter "pageSize": The maximum number oftables to return. The service may return fewer than this value. Ifunspecified, 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(pageTokenstring) *TablesListCall
PageToken sets the optional parameter "pageToken": A page token, receivedfrom a previous `ListTables` call. Provide this to retrieve the subsequentpage. When paginating, all other parameters provided to `ListTables` mustmatch the call that provided the page token.
func (*TablesListCall)Pages¶
func (c *TablesListCall) Pages(ctxcontext.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.
typeTablesRowsBatchCreateCall¶
type TablesRowsBatchCreateCall struct {// contains filtered or unexported fields}func (*TablesRowsBatchCreateCall)Context¶
func (c *TablesRowsBatchCreateCall) Context(ctxcontext.Context) *TablesRowsBatchCreateCall
Context sets the context to be used in this call's Do method.
func (*TablesRowsBatchCreateCall)Do¶
func (c *TablesRowsBatchCreateCall) Do(opts ...googleapi.CallOption) (*BatchCreateRowsResponse,error)
Do executes the "area120tables.tables.rows.batchCreate" call.Any non-2xx status code is an error. Response headers are in either*BatchCreateRowsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*TablesRowsBatchCreateCall)Fields¶
func (c *TablesRowsBatchCreateCall) Fields(s ...googleapi.Field) *TablesRowsBatchCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*TablesRowsBatchCreateCall)Header¶
func (c *TablesRowsBatchCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeTablesRowsBatchDeleteCall¶added inv0.37.0
type TablesRowsBatchDeleteCall struct {// contains filtered or unexported fields}func (*TablesRowsBatchDeleteCall)Context¶added inv0.37.0
func (c *TablesRowsBatchDeleteCall) Context(ctxcontext.Context) *TablesRowsBatchDeleteCall
Context sets the context to be used in this call's Do method.
func (*TablesRowsBatchDeleteCall)Do¶added inv0.37.0
func (c *TablesRowsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*Empty,error)
Do executes the "area120tables.tables.rows.batchDelete" call.Any non-2xx status code is an error. Response headers are in either*Empty.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 was returned.
func (*TablesRowsBatchDeleteCall)Fields¶added inv0.37.0
func (c *TablesRowsBatchDeleteCall) Fields(s ...googleapi.Field) *TablesRowsBatchDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*TablesRowsBatchDeleteCall)Header¶added inv0.37.0
func (c *TablesRowsBatchDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeTablesRowsBatchUpdateCall¶
type TablesRowsBatchUpdateCall struct {// contains filtered or unexported fields}func (*TablesRowsBatchUpdateCall)Context¶
func (c *TablesRowsBatchUpdateCall) Context(ctxcontext.Context) *TablesRowsBatchUpdateCall
Context sets the context to be used in this call's Do method.
func (*TablesRowsBatchUpdateCall)Do¶
func (c *TablesRowsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*BatchUpdateRowsResponse,error)
Do executes the "area120tables.tables.rows.batchUpdate" call.Any non-2xx status code is an error. Response headers are in either*BatchUpdateRowsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*TablesRowsBatchUpdateCall)Fields¶
func (c *TablesRowsBatchUpdateCall) Fields(s ...googleapi.Field) *TablesRowsBatchUpdateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*TablesRowsBatchUpdateCall)Header¶
func (c *TablesRowsBatchUpdateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeTablesRowsCreateCall¶
type TablesRowsCreateCall struct {// contains filtered or unexported fields}func (*TablesRowsCreateCall)Context¶
func (c *TablesRowsCreateCall) Context(ctxcontext.Context) *TablesRowsCreateCall
Context sets the context to be used in this call's Do method.
func (*TablesRowsCreateCall)Do¶
func (c *TablesRowsCreateCall) Do(opts ...googleapi.CallOption) (*Row,error)
Do executes the "area120tables.tables.rows.create" call.Any non-2xx status code is an error. Response headers are in either*Row.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 was returned.
func (*TablesRowsCreateCall)Fields¶
func (c *TablesRowsCreateCall) Fields(s ...googleapi.Field) *TablesRowsCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*TablesRowsCreateCall)Header¶
func (c *TablesRowsCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*TablesRowsCreateCall)View¶
func (c *TablesRowsCreateCall) View(viewstring) *TablesRowsCreateCall
View sets the optional parameter "view": Column key to use for values in therow. 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.
typeTablesRowsDeleteCall¶
type TablesRowsDeleteCall struct {// contains filtered or unexported fields}func (*TablesRowsDeleteCall)Context¶
func (c *TablesRowsDeleteCall) Context(ctxcontext.Context) *TablesRowsDeleteCall
Context sets the context to be used in this call's Do method.
func (*TablesRowsDeleteCall)Do¶
func (c *TablesRowsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty,error)
Do executes the "area120tables.tables.rows.delete" call.Any non-2xx status code is an error. Response headers are in either*Empty.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 was returned.
func (*TablesRowsDeleteCall)Fields¶
func (c *TablesRowsDeleteCall) Fields(s ...googleapi.Field) *TablesRowsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*TablesRowsDeleteCall)Header¶
func (c *TablesRowsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeTablesRowsGetCall¶
type TablesRowsGetCall struct {// contains filtered or unexported fields}func (*TablesRowsGetCall)Context¶
func (c *TablesRowsGetCall) Context(ctxcontext.Context) *TablesRowsGetCall
Context sets the context to be used in this call's Do method.
func (*TablesRowsGetCall)Do¶
func (c *TablesRowsGetCall) Do(opts ...googleapi.CallOption) (*Row,error)
Do executes the "area120tables.tables.rows.get" call.Any non-2xx status code is an error. Response headers are in either*Row.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 was returned.
func (*TablesRowsGetCall)Fields¶
func (c *TablesRowsGetCall) Fields(s ...googleapi.Field) *TablesRowsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*TablesRowsGetCall)Header¶
func (c *TablesRowsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*TablesRowsGetCall)IfNoneMatch¶
func (c *TablesRowsGetCall) IfNoneMatch(entityTagstring) *TablesRowsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*TablesRowsGetCall)View¶
func (c *TablesRowsGetCall) View(viewstring) *TablesRowsGetCall
View sets the optional parameter "view": Column key to use for values in therow. 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.
typeTablesRowsListCall¶
type TablesRowsListCall struct {// contains filtered or unexported fields}func (*TablesRowsListCall)Context¶
func (c *TablesRowsListCall) Context(ctxcontext.Context) *TablesRowsListCall
Context sets the context to be used in this call's Do method.
func (*TablesRowsListCall)Do¶
func (c *TablesRowsListCall) Do(opts ...googleapi.CallOption) (*ListRowsResponse,error)
Do executes the "area120tables.tables.rows.list" call.Any non-2xx status code is an error. Response headers are in either*ListRowsResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*TablesRowsListCall)Fields¶
func (c *TablesRowsListCall) Fields(s ...googleapi.Field) *TablesRowsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*TablesRowsListCall)Filter¶added inv0.41.0
func (c *TablesRowsListCall) Filter(filterstring) *TablesRowsListCall
Filter sets the optional parameter "filter": Filter to only includeresources matching the requirements. For more information, see Filteringlist results (https://support.google.com/area120-tables/answer/10503371).
func (*TablesRowsListCall)Header¶
func (c *TablesRowsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*TablesRowsListCall)IfNoneMatch¶
func (c *TablesRowsListCall) IfNoneMatch(entityTagstring) *TablesRowsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*TablesRowsListCall)OrderBy¶added inv0.46.0
func (c *TablesRowsListCall) OrderBy(orderBystring) *TablesRowsListCall
OrderBy sets the optional parameter "orderBy": Sorting order for the list ofrows on createTime/updateTime.
func (*TablesRowsListCall)PageSize¶
func (c *TablesRowsListCall) PageSize(pageSizeint64) *TablesRowsListCall
PageSize sets the optional parameter "pageSize": The maximum number of rowsto return. The service may return fewer than this value. If unspecified, atmost 50 rows are returned. The maximum value is 1,000; values above 1,000are coerced to 1,000.
func (*TablesRowsListCall)PageToken¶
func (c *TablesRowsListCall) PageToken(pageTokenstring) *TablesRowsListCall
PageToken sets the optional parameter "pageToken": A page token, receivedfrom a previous `ListRows` call. Provide this to retrieve the subsequentpage. When paginating, all other parameters provided to `ListRows` mustmatch the call that provided the page token.
func (*TablesRowsListCall)Pages¶
func (c *TablesRowsListCall) Pages(ctxcontext.Context, f func(*ListRowsResponse)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.
func (*TablesRowsListCall)View¶
func (c *TablesRowsListCall) View(viewstring) *TablesRowsListCall
View sets the optional parameter "view": Column key to use for values in therow. 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.
typeTablesRowsPatchCall¶
type TablesRowsPatchCall struct {// contains filtered or unexported fields}func (*TablesRowsPatchCall)Context¶
func (c *TablesRowsPatchCall) Context(ctxcontext.Context) *TablesRowsPatchCall
Context sets the context to be used in this call's Do method.
func (*TablesRowsPatchCall)Do¶
func (c *TablesRowsPatchCall) Do(opts ...googleapi.CallOption) (*Row,error)
Do executes the "area120tables.tables.rows.patch" call.Any non-2xx status code is an error. Response headers are in either*Row.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 was returned.
func (*TablesRowsPatchCall)Fields¶
func (c *TablesRowsPatchCall) Fields(s ...googleapi.Field) *TablesRowsPatchCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*TablesRowsPatchCall)Header¶
func (c *TablesRowsPatchCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*TablesRowsPatchCall)UpdateMask¶
func (c *TablesRowsPatchCall) UpdateMask(updateMaskstring) *TablesRowsPatchCall
UpdateMask sets the optional parameter "updateMask": The list of fields toupdate.
func (*TablesRowsPatchCall)View¶
func (c *TablesRowsPatchCall) View(viewstring) *TablesRowsPatchCall
View sets the optional parameter "view": Column key to use for values in therow. 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.
typeTablesRowsService¶
type TablesRowsService struct {// contains filtered or unexported fields}funcNewTablesRowsService¶
func NewTablesRowsService(s *Service) *TablesRowsService
func (*TablesRowsService)BatchCreate¶
func (r *TablesRowsService) BatchCreate(parentstring, batchcreaterowsrequest *BatchCreateRowsRequest) *TablesRowsBatchCreateCall
BatchCreate: Creates multiple rows.
- parent: The parent table where the rows will be created. Format:tables/{table}.
func (*TablesRowsService)BatchDelete¶added inv0.37.0
func (r *TablesRowsService) BatchDelete(parentstring, batchdeleterowsrequest *BatchDeleteRowsRequest) *TablesRowsBatchDeleteCall
BatchDelete: Deletes multiple rows.
- parent: The parent table shared by all rows being deleted. Format:tables/{table}.
func (*TablesRowsService)BatchUpdate¶
func (r *TablesRowsService) BatchUpdate(parentstring, batchupdaterowsrequest *BatchUpdateRowsRequest) *TablesRowsBatchUpdateCall
BatchUpdate: Updates multiple rows.
- parent: The parent table shared by all rows being updated. Format:tables/{table}.
func (*TablesRowsService)Create¶
func (r *TablesRowsService) Create(parentstring, row *Row) *TablesRowsCreateCall
Create: Creates a row.
- parent: The parent table where this row will be created. Format:tables/{table}.
func (*TablesRowsService)Delete¶
func (r *TablesRowsService) Delete(namestring) *TablesRowsDeleteCall
Delete: Deletes a row.
- name: The name of the row to delete. Format: tables/{table}/rows/{row}.
func (*TablesRowsService)Get¶
func (r *TablesRowsService) Get(namestring) *TablesRowsGetCall
Get: Gets a row. Returns NOT_FOUND if the row does not exist in the table.
- name: The name of the row to retrieve. Format: tables/{table}/rows/{row}.
func (*TablesRowsService)List¶
func (r *TablesRowsService) List(parentstring) *TablesRowsListCall
List: Lists rows in a table. Returns NOT_FOUND if the table does not exist.
- parent: The parent table. Format: tables/{table}.
func (*TablesRowsService)Patch¶
func (r *TablesRowsService) Patch(namestring, row *Row) *TablesRowsPatchCall
Patch: Updates a row.
- name: The resource name of the row. Row names have the form`tables/{table}/rows/{row}`. The name is ignored when creating a row.
typeTablesService¶
type TablesService struct {Rows *TablesRowsService// contains filtered or unexported fields}funcNewTablesService¶
func NewTablesService(s *Service) *TablesService
func (*TablesService)Get¶
func (r *TablesService) Get(namestring) *TablesGetCall
Get: Gets a table. Returns NOT_FOUND if the table does not exist.
- name: The name of the table to retrieve. Format: tables/{table}.
func (*TablesService)List¶
func (r *TablesService) List() *TablesListCall
List: Lists tables for the user.
typeUpdateRowRequest¶
type UpdateRowRequest struct {// Row: Required. The row to update.Row *Row `json:"row,omitempty"`// UpdateMask: The list of fields to update.UpdateMaskstring `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.Viewstring `json:"view,omitempty"`// ForceSendFields is a list of field names (e.g. "Row") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}UpdateRowRequest: Request message for TablesService.UpdateRow.
func (UpdateRowRequest)MarshalJSON¶
func (sUpdateRowRequest) MarshalJSON() ([]byte,error)
typeWorkspace¶added inv0.35.0
type Workspace struct {// CreateTime: Time when the workspace was created.CreateTimestring `json:"createTime,omitempty"`// DisplayName: The human readable title of the workspace.DisplayNamestring `json:"displayName,omitempty"`// Name: The resource name of the workspace. Workspace names have the form// `workspaces/{workspace}`.Namestring `json:"name,omitempty"`// Tables: The list of tables in the workspace.Tables []*Table `json:"tables,omitempty"`// UpdateTime: Time when the workspace was last updated.UpdateTimestring `json:"updateTime,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CreateTime") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CreateTime") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Workspace: A single workspace.
func (Workspace)MarshalJSON¶added inv0.35.0
typeWorkspacesGetCall¶added inv0.35.0
type WorkspacesGetCall struct {// contains filtered or unexported fields}func (*WorkspacesGetCall)Context¶added inv0.35.0
func (c *WorkspacesGetCall) Context(ctxcontext.Context) *WorkspacesGetCall
Context sets the context to be used in this call's Do method.
func (*WorkspacesGetCall)Do¶added inv0.35.0
func (c *WorkspacesGetCall) Do(opts ...googleapi.CallOption) (*Workspace,error)
Do executes the "area120tables.workspaces.get" call.Any non-2xx status code is an error. Response headers are in either*Workspace.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 was returned.
func (*WorkspacesGetCall)Fields¶added inv0.35.0
func (c *WorkspacesGetCall) Fields(s ...googleapi.Field) *WorkspacesGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*WorkspacesGetCall)Header¶added inv0.35.0
func (c *WorkspacesGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*WorkspacesGetCall)IfNoneMatch¶added inv0.35.0
func (c *WorkspacesGetCall) IfNoneMatch(entityTagstring) *WorkspacesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeWorkspacesListCall¶added inv0.35.0
type WorkspacesListCall struct {// contains filtered or unexported fields}func (*WorkspacesListCall)Context¶added inv0.35.0
func (c *WorkspacesListCall) Context(ctxcontext.Context) *WorkspacesListCall
Context sets the context to be used in this call's Do method.
func (*WorkspacesListCall)Do¶added inv0.35.0
func (c *WorkspacesListCall) Do(opts ...googleapi.CallOption) (*ListWorkspacesResponse,error)
Do executes the "area120tables.workspaces.list" call.Any non-2xx status code is an error. Response headers are in either*ListWorkspacesResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*WorkspacesListCall)Fields¶added inv0.35.0
func (c *WorkspacesListCall) Fields(s ...googleapi.Field) *WorkspacesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*WorkspacesListCall)Header¶added inv0.35.0
func (c *WorkspacesListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*WorkspacesListCall)IfNoneMatch¶added inv0.35.0
func (c *WorkspacesListCall) IfNoneMatch(entityTagstring) *WorkspacesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*WorkspacesListCall)PageSize¶added inv0.35.0
func (c *WorkspacesListCall) PageSize(pageSizeint64) *WorkspacesListCall
PageSize sets the optional parameter "pageSize": The maximum number ofworkspaces to return. The service may return fewer than this value. Ifunspecified, at most 10 workspaces are returned. The maximum value is 25;values above 25 are coerced to 25.
func (*WorkspacesListCall)PageToken¶added inv0.35.0
func (c *WorkspacesListCall) PageToken(pageTokenstring) *WorkspacesListCall
PageToken sets the optional parameter "pageToken": A page token, receivedfrom a previous `ListWorkspaces` call. Provide this to retrieve thesubsequent page. When paginating, all other parameters provided to`ListWorkspaces` must match the call that provided the page token.
func (*WorkspacesListCall)Pages¶added inv0.35.0
func (c *WorkspacesListCall) Pages(ctxcontext.Context, f func(*ListWorkspacesResponse)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.
typeWorkspacesService¶added inv0.35.0
type WorkspacesService struct {// contains filtered or unexported fields}funcNewWorkspacesService¶added inv0.35.0
func NewWorkspacesService(s *Service) *WorkspacesService
func (*WorkspacesService)Get¶added inv0.35.0
func (r *WorkspacesService) Get(namestring) *WorkspacesGetCall
Get: Gets a workspace. Returns NOT_FOUND if the workspace does not exist.
- name: The name of the workspace to retrieve. Format:workspaces/{workspace}.
func (*WorkspacesService)List¶added inv0.35.0
func (r *WorkspacesService) List() *WorkspacesListCall
List: Lists workspaces for the user.