class ProjectsLocationsCatalogsDatabasesTables extends Resource (View source)

The "tables" collection of methods.

Typical usage is:

 $biglakeService = new Google\Service\BigLakeService(...);
 $tables = $biglakeService->projects_locations_catalogs_databases_tables;

Methods

create(string $parent, Table $postBody, array $optParams = [])

Creates a new table. (tables.create)

delete(string $name, array $optParams = [])

Deletes an existing table specified by the table ID. (tables.delete)

get(string $name, array $optParams = [])

Gets the table specified by the resource name. (tables.get)

listProjectsLocationsCatalogsDatabasesTables(string $parent, array $optParams = [])

List all tables in a specified database.

patch(string $name, Table $postBody, array $optParams = [])

Updates an existing table specified by the table ID. (tables.patch)

rename(string $name, RenameTableRequest $postBody, array $optParams = [])

Renames an existing table specified by the table ID. (tables.rename)

Details

Table create(string $parent, Table $postBody, array $optParams = [])

Creates a new table. (tables.create)

Parameters

string $parent

Required. The parent resource where this table will be created. Format: projects/{project_id_or_number}/locations/{location_id}/cata logs/{catalog_id}/databases/{database_id}

Table $postBody
array $optParams

Optional parameters.

Return Value

Table

Exceptions

Exception

Table delete(string $name, array $optParams = [])

Deletes an existing table specified by the table ID. (tables.delete)

Parameters

string $name

Required. The name of the table to delete. Format: projec ts/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/datab ases/{database_id}/tables/{table_id}

array $optParams

Optional parameters.

Return Value

Table

Exceptions

Exception

Table get(string $name, array $optParams = [])

Gets the table specified by the resource name. (tables.get)

Parameters

string $name

Required. The name of the table to retrieve. Format: proj ects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/dat abases/{database_id}/tables/{table_id}

array $optParams

Optional parameters.

Return Value

Table

Exceptions

Exception

ListTablesResponse listProjectsLocationsCatalogsDatabasesTables(string $parent, array $optParams = [])

List all tables in a specified database.

(tables.listProjectsLocationsCatalogsDatabasesTables)

Parameters

string $parent

Required. The parent, which owns this collection of tables. Format: projects/{project_id_or_number}/locations/{location_id}/catal ogs/{catalog_id}/databases/{database_id}

array $optParams

Optional parameters.

Return Value

ListTablesResponse

Exceptions

Exception

Table patch(string $name, Table $postBody, array $optParams = [])

Updates an existing table specified by the table ID. (tables.patch)

Parameters

string $name

Output only. The resource name. Format: projects/{project _id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{datab ase_id}/tables/{table_id}

Table $postBody
array $optParams

Optional parameters.

Return Value

Table

Exceptions

Exception

Table rename(string $name, RenameTableRequest $postBody, array $optParams = [])

Renames an existing table specified by the table ID. (tables.rename)

Parameters

string $name

Required. The table's name field is used to identify the table to rename. Format: projects/{project_id_or_number}/locations/{locat ion_id}/catalogs/{catalog_id}/databases/{database_id}/tables/{table_id}

RenameTableRequest $postBody
array $optParams

Optional parameters.

Return Value

Table

Exceptions

Exception