Show / Hide Table of Contents

Class TablesResource

The "tables" collection of methods.

Inheritance
System.Object
TablesResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Bigquery.v2
Assembly: Google.Apis.Bigquery.v2.dll
Syntax
public class TablesResource

Constructors

TablesResource(IClientService)

Constructs a new resource.

Declaration
public TablesResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Delete(String, String, String)

Deletes the table specified by tableId from the dataset. If the table contains data, all the data will be deleted.

Declaration
public virtual TablesResource.DeleteRequest Delete(string projectId, string datasetId, string tableId)
Parameters
Type Name Description
System.String projectId

Project ID of the table to delete

System.String datasetId

Dataset ID of the table to delete

System.String tableId

Table ID of the table to delete

Returns
Type Description
TablesResource.DeleteRequest

Get(String, String, String)

Gets the specified table resource by table ID. This method does not return the data in the table, it only returns the table resource, which describes the structure of this table.

Declaration
public virtual TablesResource.GetRequest Get(string projectId, string datasetId, string tableId)
Parameters
Type Name Description
System.String projectId

Project ID of the requested table

System.String datasetId

Dataset ID of the requested table

System.String tableId

Table ID of the requested table

Returns
Type Description
TablesResource.GetRequest

Insert(Table, String, String)

Creates a new, empty table in the dataset.

Declaration
public virtual TablesResource.InsertRequest Insert(Table body, string projectId, string datasetId)
Parameters
Type Name Description
Table body

The body of the request.

System.String projectId

Project ID of the new table

System.String datasetId

Dataset ID of the new table

Returns
Type Description
TablesResource.InsertRequest

List(String, String)

Lists all tables in the specified dataset. Requires the READER dataset role.

Declaration
public virtual TablesResource.ListRequest List(string projectId, string datasetId)
Parameters
Type Name Description
System.String projectId

Project ID of the tables to list

System.String datasetId

Dataset ID of the tables to list

Returns
Type Description
TablesResource.ListRequest

Patch(Table, String, String, String)

Updates information in an existing table. The update method replaces the entire table resource, whereas the patch method only replaces fields that are provided in the submitted table resource. This method supports patch semantics.

Declaration
public virtual TablesResource.PatchRequest Patch(Table body, string projectId, string datasetId, string tableId)
Parameters
Type Name Description
Table body

The body of the request.

System.String projectId

Project ID of the table to update

System.String datasetId

Dataset ID of the table to update

System.String tableId

Table ID of the table to update

Returns
Type Description
TablesResource.PatchRequest

Update(Table, String, String, String)

Updates information in an existing table. The update method replaces the entire table resource, whereas the patch method only replaces fields that are provided in the submitted table resource.

Declaration
public virtual TablesResource.UpdateRequest Update(Table body, string projectId, string datasetId, string tableId)
Parameters
Type Name Description
Table body

The body of the request.

System.String projectId

Project ID of the table to update

System.String datasetId

Dataset ID of the table to update

System.String tableId

Table ID of the table to update

Returns
Type Description
TablesResource.UpdateRequest
Back to top