batchCreate(parent, body=None, x__xgafv=None)
Creates multiple rows.
batchDelete(parent, body=None, x__xgafv=None)
Deletes multiple rows.
batchUpdate(parent, body=None, x__xgafv=None)
Updates multiple rows.
Close httplib2 connections.
create(parent, body=None, view=None, x__xgafv=None)
Creates a row.
Deletes a row.
get(name, view=None, x__xgafv=None)
Gets a row. Returns NOT_FOUND if the row does not exist in the table.
list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, view=None, x__xgafv=None)
Lists rows in a table. Returns NOT_FOUND if the table does not exist.
Retrieves the next page of results.
patch(name, body=None, updateMask=None, view=None, x__xgafv=None)
Updates a row.
batchCreate(parent, body=None, x__xgafv=None)
Creates multiple rows. Args: parent: string, Required. The parent table where the rows will be created. Format: tables/{table} (required) body: object, The request body. The object takes the form of: { # Request message for TablesService.BatchCreateRows. "requests": [ # Required. The request message specifying the rows to create. A maximum of 500 rows can be created in a single batch. { # Request message for TablesService.CreateRow. "parent": "A String", # Required. The parent table where this row will be created. Format: tables/{table} "row": { # A single row in a table. # Required. The row to create. "createTime": "A String", # Time when the row was created. "name": "A String", # The resource name of the row. Row names have the form `tables/{table}/rows/{row}`. The name is ignored when creating a row. "updateTime": "A String", # Time when the row was last updated. "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. "a_key": "", }, }, "view": "A String", # Optional. Column key to use for values in the row. Defaults to user entered name. }, ], } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Response message for TablesService.BatchCreateRows. "rows": [ # The created rows. { # A single row in a table. "createTime": "A String", # Time when the row was created. "name": "A String", # The resource name of the row. Row names have the form `tables/{table}/rows/{row}`. The name is ignored when creating a row. "updateTime": "A String", # Time when the row was last updated. "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. "a_key": "", }, }, ], }
batchDelete(parent, body=None, x__xgafv=None)
Deletes multiple rows. Args: parent: string, Required. The parent table shared by all rows being deleted. Format: tables/{table} (required) body: object, The request body. The object takes the form of: { # Request message for TablesService.BatchDeleteRows "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} "A String", ], } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # 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); } }
batchUpdate(parent, body=None, x__xgafv=None)
Updates multiple rows. Args: parent: string, Required. The parent table shared by all rows being updated. Format: tables/{table} (required) body: object, The request body. The object takes the form of: { # Request message for TablesService.BatchUpdateRows. "requests": [ # Required. The request messages specifying the rows to update. A maximum of 500 rows can be modified in a single batch. { # Request message for TablesService.UpdateRow. "row": { # A single row in a table. # Required. The row to update. "createTime": "A String", # Time when the row was created. "name": "A String", # The resource name of the row. Row names have the form `tables/{table}/rows/{row}`. The name is ignored when creating a row. "updateTime": "A String", # Time when the row was last updated. "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. "a_key": "", }, }, "updateMask": "A String", # The list of fields to update. "view": "A String", # Optional. Column key to use for values in the row. Defaults to user entered name. }, ], } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Response message for TablesService.BatchUpdateRows. "rows": [ # The updated rows. { # A single row in a table. "createTime": "A String", # Time when the row was created. "name": "A String", # The resource name of the row. Row names have the form `tables/{table}/rows/{row}`. The name is ignored when creating a row. "updateTime": "A String", # Time when the row was last updated. "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. "a_key": "", }, }, ], }
close()
Close httplib2 connections.
create(parent, body=None, view=None, x__xgafv=None)
Creates a row. Args: parent: string, Required. The parent table where this row will be created. Format: tables/{table} (required) body: object, The request body. The object takes the form of: { # A single row in a table. "createTime": "A String", # Time when the row was created. "name": "A String", # The resource name of the row. Row names have the form `tables/{table}/rows/{row}`. The name is ignored when creating a row. "updateTime": "A String", # Time when the row was last updated. "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. "a_key": "", }, } view: string, Optional. Column key to use for values in the row. Defaults to user entered name. Allowed values VIEW_UNSPECIFIED - Defaults to user entered text. COLUMN_ID_VIEW - Uses internally generated column id to identify values. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # A single row in a table. "createTime": "A String", # Time when the row was created. "name": "A String", # The resource name of the row. Row names have the form `tables/{table}/rows/{row}`. The name is ignored when creating a row. "updateTime": "A String", # Time when the row was last updated. "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. "a_key": "", }, }
delete(name, x__xgafv=None)
Deletes a row. Args: name: string, Required. The name of the row to delete. Format: tables/{table}/rows/{row} (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # 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); } }
get(name, view=None, x__xgafv=None)
Gets a row. Returns NOT_FOUND if the row does not exist in the table. Args: name: string, Required. The name of the row to retrieve. Format: tables/{table}/rows/{row} (required) view: string, Optional. Column key to use for values in the row. Defaults to user entered name. Allowed values VIEW_UNSPECIFIED - Defaults to user entered text. COLUMN_ID_VIEW - Uses internally generated column id to identify values. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # A single row in a table. "createTime": "A String", # Time when the row was created. "name": "A String", # The resource name of the row. Row names have the form `tables/{table}/rows/{row}`. The name is ignored when creating a row. "updateTime": "A String", # Time when the row was last updated. "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. "a_key": "", }, }
list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, view=None, x__xgafv=None)
Lists rows in a table. Returns NOT_FOUND if the table does not exist. Args: parent: string, Required. The parent table. Format: tables/{table} (required) filter: string, Optional. Filter to only include resources matching the requirements. For more information, see [Filtering list results](https://support.google.com/area120-tables/answer/10503371). orderBy: string, Optional. Sorting order for the list of rows on createTime/updateTime. pageSize: integer, 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. pageToken: string, 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. view: string, Optional. Column key to use for values in the row. Defaults to user entered name. Allowed values VIEW_UNSPECIFIED - Defaults to user entered text. COLUMN_ID_VIEW - Uses internally generated column id to identify values. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Response message for TablesService.ListRows. "nextPageToken": "A String", # A token, which can be sent as `page_token` to retrieve the next page. If this field is empty, there are no subsequent pages. "rows": [ # The rows from the specified table. { # A single row in a table. "createTime": "A String", # Time when the row was created. "name": "A String", # The resource name of the row. Row names have the form `tables/{table}/rows/{row}`. The name is ignored when creating a row. "updateTime": "A String", # Time when the row was last updated. "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. "a_key": "", }, }, ], }
list_next()
Retrieves the next page of results. Args: previous_request: The request for the previous page. (required) previous_response: The response from the request for the previous page. (required) Returns: A request object that you can call 'execute()' on to request the next page. Returns None if there are no more items in the collection.
patch(name, body=None, updateMask=None, view=None, x__xgafv=None)
Updates a row. Args: name: string, The resource name of the row. Row names have the form `tables/{table}/rows/{row}`. The name is ignored when creating a row. (required) body: object, The request body. The object takes the form of: { # A single row in a table. "createTime": "A String", # Time when the row was created. "name": "A String", # The resource name of the row. Row names have the form `tables/{table}/rows/{row}`. The name is ignored when creating a row. "updateTime": "A String", # Time when the row was last updated. "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. "a_key": "", }, } updateMask: string, The list of fields to update. view: string, Optional. Column key to use for values in the row. Defaults to user entered name. Allowed values VIEW_UNSPECIFIED - Defaults to user entered text. COLUMN_ID_VIEW - Uses internally generated column id to identify values. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # A single row in a table. "createTime": "A String", # Time when the row was created. "name": "A String", # The resource name of the row. Row names have the form `tables/{table}/rows/{row}`. The name is ignored when creating a row. "updateTime": "A String", # Time when the row was last updated. "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. "a_key": "", }, }