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 |
---|---|---|
Google.Apis.Services.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 |
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. |
System.String | resource | REQUIRED: The resource for which the policy is being requested. See the operation documentation 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. |
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 |
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. |
System.String | resource | REQUIRED: The resource for which the policy is being specified. See the operation documentation 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. |
System.String | resource | REQUIRED: The resource for which the policy detail is being requested. See the operation documentation 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. |
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 |