Skip to main content

catalogs

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

Overview​

Namecatalogs
TypeResource
Idgoogle.biglake.catalogs

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringOutput only. The resource name. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}
createTimestring (google-datetime)Output only. The creation time of the catalog.
deleteTimestring (google-datetime)Output only. The deletion time of the catalog. Only set after the catalog is deleted.
expireTimestring (google-datetime)Output only. The time when this catalog is considered expired. Only set after the catalog is deleted.
updateTimestring (google-datetime)Output only. The last modification time of the catalog.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, catalogsIdGets the catalog specified by the resource name.
listselectprojectsId, locationsIdpageSize, pageTokenList all catalogs in a specified project.
createinsertprojectsId, locationsIdcatalogIdCreates a new catalog.
deletedeleteprojectsId, locationsId, catalogsIdDeletes an existing catalog specified by the catalog ID.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
catalogsIdstring
locationsIdstring
projectsIdstring
catalogIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples​

Gets the catalog specified by the resource name.

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

INSERT examples​

Creates a new catalog.

INSERT INTO google.biglake.catalogs (
projectsId,
locationsId,
catalogId
)
SELECT
'{{ projectsId }}',
'{{ locationsId }}',
'{{ catalogId }}'
RETURNING
name,
createTime,
deleteTime,
expireTime,
updateTime
;

DELETE examples​

Deletes an existing catalog specified by the catalog ID.

DELETE FROM google.biglake.catalogs
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND catalogsId = '{{ catalogsId }}' --required
;