Class TablesResource
The "tables" collection of methods.
Inheritance
Inherited Members
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 |
---|---|---|
string | projectId | Project ID of the table to delete |
string | datasetId | Dataset ID of the table to delete |
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 |
---|---|---|
string | projectId | Project ID of the requested table |
string | datasetId | Dataset ID of the requested table |
string | tableId | Table ID of the requested table |
Returns
Type | Description |
---|---|
TablesResource.GetRequest |
GetIamPolicy(GetIamPolicyRequest, string)
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
Declaration
public virtual TablesResource.GetIamPolicyRequest GetIamPolicy(GetIamPolicyRequest body, string resource)
Parameters
Type | Name | Description |
---|---|---|
GetIamPolicyRequest | body | The body of the request. |
string | resource | REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field. |
Returns
Type | Description |
---|---|
TablesResource.GetIamPolicyRequest |
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. |
string | projectId | Project ID of the new table |
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 |
---|---|---|
string | projectId | Project ID of the tables to list |
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. |
string | projectId | Project ID of the table to update |
string | datasetId | Dataset ID of the table to update |
string | tableId | Table ID of the table to update |
Returns
Type | Description |
---|---|
TablesResource.PatchRequest |
SetIamPolicy(SetIamPolicyRequest, string)
Sets the access control policy on the specified resource. Replaces any existing policy. Can return
NOT_FOUND
, INVALID_ARGUMENT
, and PERMISSION_DENIED
errors.
Declaration
public virtual TablesResource.SetIamPolicyRequest SetIamPolicy(SetIamPolicyRequest body, string resource)
Parameters
Type | Name | Description |
---|---|---|
SetIamPolicyRequest | body | The body of the request. |
string | resource | REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field. |
Returns
Type | Description |
---|---|
TablesResource.SetIamPolicyRequest |
TestIamPermissions(TestIamPermissionsRequest, string)
Returns permissions that a caller has on the specified resource. If the resource does not exist, this will
return an empty set of permissions, not a NOT_FOUND
error. Note: This operation is designed to be used for
building permission-aware UIs and command-line tools, not for authorization checking. This operation may
"fail open" without warning.
Declaration
public virtual TablesResource.TestIamPermissionsRequest TestIamPermissions(TestIamPermissionsRequest body, string resource)
Parameters
Type | Name | Description |
---|---|---|
TestIamPermissionsRequest | body | The body of the request. |
string | resource | REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field. |
Returns
Type | Description |
---|---|
TablesResource.TestIamPermissionsRequest |
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. |
string | projectId | Project ID of the table to update |
string | datasetId | Dataset ID of the table to update |
string | tableId | Table ID of the table to update |
Returns
Type | Description |
---|---|
TablesResource.UpdateRequest |