Tables
class Tables extends Resource (View source)
The "tables" collection of methods.
Typical usage is:
$bigqueryService = new Google\Service\Bigquery(...);
$tables = $bigqueryService->tables;
Methods
Deletes the table specified by tableId from the dataset. If the table contains data, all the data will be deleted. (tables.delete)
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. (tables.get)
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (tables.getIamPolicy)
Lists all tables in the specified dataset. Requires the READER dataset role.
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 RFC5789 patch semantics. (tables.patch)
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors. (tables.setIamPolicy)
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.
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. (tables.update)
Details
delete(string $projectId, string $datasetId, string $tableId, array $optParams = [])
Deletes the table specified by tableId from the dataset. If the table contains data, all the data will be deleted. (tables.delete)
Table
get(string $projectId, string $datasetId, string $tableId, array $optParams = [])
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. (tables.get)
Policy
getIamPolicy(string $resource, GetIamPolicyRequest $postBody, array $optParams = [])
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (tables.getIamPolicy)
Table
insert(string $projectId, string $datasetId, Table $postBody, array $optParams = [])
Creates a new, empty table in the dataset. (tables.insert)
TableList
listTables(string $projectId, string $datasetId, array $optParams = [])
Lists all tables in the specified dataset. Requires the READER dataset role.
(tables.listTables)
Table
patch(string $projectId, string $datasetId, string $tableId, Table $postBody, array $optParams = [])
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 RFC5789 patch semantics. (tables.patch)
Policy
setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors. (tables.setIamPolicy)
TestIamPermissionsResponse
testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])
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. (tables.testIamPermissions)
Table
update(string $projectId, string $datasetId, string $tableId, Table $postBody, array $optParams = [])
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. (tables.update)