OAuth2 scopes used by this API.
const ( // See, edit, create, and delete all of your Google Drive files DriveScope = "https://www.googleapis.com/auth/drive" // See, edit, create, and delete only the specific Google Drive files you use // 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 all your Google Sheets spreadsheets SpreadsheetsScope = "https://www.googleapis.com/auth/spreadsheets" // See all your Google Sheets 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" )
BatchCreateRowsRequest: Request message for TablesService.BatchCreateRows.
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:"-"` }
func (s *BatchCreateRowsRequest) MarshalJSON() ([]byte, error)
BatchCreateRowsResponse: Response message for TablesService.BatchCreateRows.
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:"-"` }
func (s *BatchCreateRowsResponse) MarshalJSON() ([]byte, error)
BatchDeleteRowsRequest: Request message for TablesService.BatchDeleteRows
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:"-"` }
func (s *BatchDeleteRowsRequest) MarshalJSON() ([]byte, error)
BatchUpdateRowsRequest: Request message for TablesService.BatchUpdateRows.
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:"-"` }
func (s *BatchUpdateRowsRequest) MarshalJSON() ([]byte, error)
BatchUpdateRowsResponse: Response message for TablesService.BatchUpdateRows.
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:"-"` }
func (s *BatchUpdateRowsResponse) MarshalJSON() ([]byte, error)
ColumnDescription: Details on a column in the table.
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"` // DateDetails: Optional. Additional details about a date column. DateDetails *DateDetails `json:"dateDetails,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"` // MultipleValuesDisallowed: Optional. Indicates whether or not multiple values // are allowed for array types where such a restriction is possible. MultipleValuesDisallowed bool `json:"multipleValuesDisallowed,omitempty"` // Name: column name Name string `json:"name,omitempty"` // Readonly: Optional. Indicates that values for the column cannot be set by // the user. Readonly bool `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:"-"` }
func (s *ColumnDescription) MarshalJSON() ([]byte, error)
CreateRowRequest: Request message for TablesService.CreateRow.
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 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:"-"` }
func (s *CreateRowRequest) MarshalJSON() ([]byte, error)
DateDetails: Details about a date column.
type DateDetails struct { // HasTime: Whether the date column includes time. HasTime bool `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:"-"` }
func (s *DateDetails) MarshalJSON() ([]byte, error)
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); }
type Empty struct { // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` }
LabeledItem: A single item in a labeled column.
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 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:"-"` }
func (s *LabeledItem) MarshalJSON() ([]byte, error)
ListRowsResponse: Response message for TablesService.ListRows.
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 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:"-"` }
func (s *ListRowsResponse) MarshalJSON() ([]byte, error)
ListTablesResponse: Response message for TablesService.ListTables.
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 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:"-"` }
func (s *ListTablesResponse) MarshalJSON() ([]byte, error)
ListWorkspacesResponse: Response message for TablesService.ListWorkspaces.
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 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:"-"` }
func (s *ListWorkspacesResponse) MarshalJSON() ([]byte, error)
LookupDetails: Details about a lookup column whose value comes from the associated relationship.
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 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:"-"` }
func (s *LookupDetails) MarshalJSON() ([]byte, error)
RelationshipDetails: Details about a relationship column.
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 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:"-"` }
func (s *RelationshipDetails) MarshalJSON() ([]byte, error)
Row: A single row in a table.
type Row struct { // CreateTime: Time when the row was created. CreateTime string `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. Name string `json:"name,omitempty"` // UpdateTime: Time when the row was last updated. UpdateTime string `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. 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. "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:"-"` }
func (s *Row) MarshalJSON() ([]byte, error)
SavedView: A saved view of a table. NextId: 3
type SavedView struct { // Id: Internal id associated with the saved view. Id string `json:"id,omitempty"` // Name: Display name of the saved view. 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 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:"-"` }
func (s *SavedView) MarshalJSON() ([]byte, error)
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(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(ctx context.Context, opts ...option.ClientOption) (*Service, error)
NewService creates a new Service.
Table: A single table. NextId: 8
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. CreateTime string `json:"createTime,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"` // 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". TimeZone string `json:"timeZone,omitempty"` // UpdateTime: Time when the table was last updated excluding updates to // individual rows UpdateTime string `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:"-"` }
func (s *Table) MarshalJSON() ([]byte, error)
type TablesGetCall struct {
// contains filtered or unexported fields
}
func (c *TablesGetCall) Context(ctx context.Context) *TablesGetCall
Context sets the context to be used in this call's Do method.
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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
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 details.
func (c *TablesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (c *TablesGetCall) IfNoneMatch(entityTag string) *TablesGetCall
IfNoneMatch sets an 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.
type TablesListCall struct {
// contains filtered or unexported fields
}
func (c *TablesListCall) Context(ctx context.Context) *TablesListCall
Context sets the context to be used in this call's Do method.
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 at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
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 details.
func (c *TablesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (c *TablesListCall) IfNoneMatch(entityTag string) *TablesListCall
IfNoneMatch sets an 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.
func (c *TablesListCall) OrderBy(orderBy string) *TablesListCall
OrderBy sets the optional parameter "orderBy": Sorting order for the list of tables on createTime/updateTime.
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 (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 (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 struct {
// contains filtered or unexported fields
}
func (c *TablesRowsBatchCreateCall) Context(ctx context.Context) *TablesRowsBatchCreateCall
Context sets the context to be used in this call's Do method.
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 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 (c *TablesRowsBatchCreateCall) Fields(s ...googleapi.Field) *TablesRowsBatchCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (c *TablesRowsBatchCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type TablesRowsBatchDeleteCall struct {
// contains filtered or unexported fields
}
func (c *TablesRowsBatchDeleteCall) Context(ctx context.Context) *TablesRowsBatchDeleteCall
Context sets the context to be used in this call's Do method.
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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (c *TablesRowsBatchDeleteCall) Fields(s ...googleapi.Field) *TablesRowsBatchDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (c *TablesRowsBatchDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type TablesRowsBatchUpdateCall struct {
// contains filtered or unexported fields
}
func (c *TablesRowsBatchUpdateCall) Context(ctx context.Context) *TablesRowsBatchUpdateCall
Context sets the context to be used in this call's Do method.
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 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 (c *TablesRowsBatchUpdateCall) Fields(s ...googleapi.Field) *TablesRowsBatchUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (c *TablesRowsBatchUpdateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type TablesRowsCreateCall struct {
// contains filtered or unexported fields
}
func (c *TablesRowsCreateCall) Context(ctx context.Context) *TablesRowsCreateCall
Context sets the context to be used in this call's Do method.
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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (c *TablesRowsCreateCall) Fields(s ...googleapi.Field) *TablesRowsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (c *TablesRowsCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (c *TablesRowsCreateCall) View(view string) *TablesRowsCreateCall
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 struct {
// contains filtered or unexported fields
}
func (c *TablesRowsDeleteCall) Context(ctx context.Context) *TablesRowsDeleteCall
Context sets the context to be used in this call's Do method.
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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (c *TablesRowsDeleteCall) Fields(s ...googleapi.Field) *TablesRowsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (c *TablesRowsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type TablesRowsGetCall struct {
// contains filtered or unexported fields
}
func (c *TablesRowsGetCall) Context(ctx context.Context) *TablesRowsGetCall
Context sets the context to be used in this call's Do method.
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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (c *TablesRowsGetCall) Fields(s ...googleapi.Field) *TablesRowsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (c *TablesRowsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (c *TablesRowsGetCall) IfNoneMatch(entityTag string) *TablesRowsGetCall
IfNoneMatch sets an 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.
func (c *TablesRowsGetCall) View(view string) *TablesRowsGetCall
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 struct {
// contains filtered or unexported fields
}
func (c *TablesRowsListCall) Context(ctx context.Context) *TablesRowsListCall
Context sets the context to be used in this call's Do method.
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 at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (c *TablesRowsListCall) Fields(s ...googleapi.Field) *TablesRowsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (c *TablesRowsListCall) Filter(filter string) *TablesRowsListCall
Filter sets the optional parameter "filter": Filter to only include resources matching the requirements. For more information, see Filtering list results (https://support.google.com/area120-tables/answer/10503371).
func (c *TablesRowsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (c *TablesRowsListCall) IfNoneMatch(entityTag string) *TablesRowsListCall
IfNoneMatch sets an 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.
func (c *TablesRowsListCall) OrderBy(orderBy string) *TablesRowsListCall
OrderBy sets the optional parameter "orderBy": Sorting order for the list of rows on createTime/updateTime.
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 (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 (c *TablesRowsListCall) Pages(ctx context.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 (c *TablesRowsListCall) View(view string) *TablesRowsListCall
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 struct {
// contains filtered or unexported fields
}
func (c *TablesRowsPatchCall) Context(ctx context.Context) *TablesRowsPatchCall
Context sets the context to be used in this call's Do method.
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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (c *TablesRowsPatchCall) Fields(s ...googleapi.Field) *TablesRowsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (c *TablesRowsPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (c *TablesRowsPatchCall) UpdateMask(updateMask string) *TablesRowsPatchCall
UpdateMask sets the optional parameter "updateMask": The list of fields to update.
func (c *TablesRowsPatchCall) View(view string) *TablesRowsPatchCall
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 struct {
// contains filtered or unexported fields
}
func NewTablesRowsService(s *Service) *TablesRowsService
func (r *TablesRowsService) BatchCreate(parent string, batchcreaterowsrequest *BatchCreateRowsRequest) *TablesRowsBatchCreateCall
BatchCreate: Creates multiple rows.
func (r *TablesRowsService) BatchDelete(parent string, batchdeleterowsrequest *BatchDeleteRowsRequest) *TablesRowsBatchDeleteCall
BatchDelete: Deletes multiple rows.
func (r *TablesRowsService) BatchUpdate(parent string, batchupdaterowsrequest *BatchUpdateRowsRequest) *TablesRowsBatchUpdateCall
BatchUpdate: Updates multiple rows.
func (r *TablesRowsService) Create(parent string, row *Row) *TablesRowsCreateCall
Create: Creates a row.
func (r *TablesRowsService) Delete(name string) *TablesRowsDeleteCall
Delete: Deletes a row.
- name: The name of the row to delete. Format: tables/{table}/rows/{row}.
func (r *TablesRowsService) Get(name string) *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 (r *TablesRowsService) List(parent string) *TablesRowsListCall
List: Lists rows in a table. Returns NOT_FOUND if the table does not exist.
- parent: The parent table. Format: tables/{table}.
func (r *TablesRowsService) Patch(name string, row *Row) *TablesRowsPatchCall
Patch: Updates a row.
type TablesService struct { Rows *TablesRowsService // contains filtered or unexported fields }
func NewTablesService(s *Service) *TablesService
func (r *TablesService) Get(name string) *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 (r *TablesService) List() *TablesListCall
List: Lists tables for the user.
UpdateRowRequest: Request message for TablesService.UpdateRow.
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 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:"-"` }
func (s *UpdateRowRequest) MarshalJSON() ([]byte, error)
Workspace: A single workspace.
type Workspace struct { // CreateTime: Time when the workspace was created. CreateTime string `json:"createTime,omitempty"` // 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"` // UpdateTime: Time when the workspace was last updated. UpdateTime string `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:"-"` }
func (s *Workspace) MarshalJSON() ([]byte, error)
type WorkspacesGetCall struct {
// contains filtered or unexported fields
}
func (c *WorkspacesGetCall) Context(ctx context.Context) *WorkspacesGetCall
Context sets the context to be used in this call's Do method.
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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (c *WorkspacesGetCall) Fields(s ...googleapi.Field) *WorkspacesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (c *WorkspacesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (c *WorkspacesGetCall) IfNoneMatch(entityTag string) *WorkspacesGetCall
IfNoneMatch sets an 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.
type WorkspacesListCall struct {
// contains filtered or unexported fields
}
func (c *WorkspacesListCall) Context(ctx context.Context) *WorkspacesListCall
Context sets the context to be used in this call's Do method.
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 returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (c *WorkspacesListCall) Fields(s ...googleapi.Field) *WorkspacesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (c *WorkspacesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (c *WorkspacesListCall) IfNoneMatch(entityTag string) *WorkspacesListCall
IfNoneMatch sets an 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.
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 (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 (c *WorkspacesListCall) Pages(ctx context.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.
type WorkspacesService struct {
// contains filtered or unexported fields
}
func NewWorkspacesService(s *Service) *WorkspacesService
func (r *WorkspacesService) Get(name string) *WorkspacesGetCall
Get: Gets a workspace. Returns NOT_FOUND if the workspace does not exist.
func (r *WorkspacesService) List() *WorkspacesListCall
List: Lists workspaces for the user.