Skip to main content

catalogs

Creates, updates, deletes, gets or lists a catalogs resource.

Overview

Namecatalogs
TypeResource
Idgoogle.biglake.catalogs

Fields

NameDatatypeDescription
namestringOutput only. The resource name. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}
createTimestringOutput only. The creation time of the catalog.
deleteTimestringOutput only. The deletion time of the catalog. Only set after the catalog is deleted.
expireTimestringOutput only. The time when this catalog is considered expired. Only set after the catalog is deleted.
updateTimestringOutput only. The last modification time of the catalog.

Methods

NameAccessible byRequired ParamsDescription
getSELECTcatalogsId, locationsId, projectsIdGets the catalog specified by the resource name.
listSELECTlocationsId, projectsIdList all catalogs in a specified project.
createINSERTlocationsId, projectsIdCreates a new catalog.
deleteDELETEcatalogsId, locationsId, projectsIdDeletes an existing catalog specified by the catalog ID.

SELECT examples

List all catalogs in a specified project.

SELECT
name,
createTime,
deleteTime,
expireTime,
updateTime
FROM google.biglake.catalogs
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new catalogs resource.

/*+ create */
INSERT INTO google.biglake.catalogs (
locationsId,
projectsId
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}'
;

DELETE example

Deletes the specified catalogs resource.

/*+ delete */
DELETE FROM google.biglake.catalogs
WHERE catalogsId = '{{ catalogsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';