Skip to main content

catalogs

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

Overview

Namecatalogs
TypeResource
Idgoogle.recommendationengine.catalogs

Fields

NameDatatypeDescription
namestringThe fully qualified resource name of the catalog.
catalogItemLevelConfigobjectConfigures the catalog level that users send events to, and the level at which predictions are made.
defaultEventStoreIdstringRequired. The ID of the default event store.
displayNamestringRequired. The catalog display name.

Methods

NameAccessible byRequired ParamsDescription
projects_locations_catalogs_listSELECTlocationsId, projectsIdLists all the catalog configurations associated with the project.
projects_locations_catalogs_patchUPDATEcatalogsId, locationsId, projectsIdUpdates the catalog configuration.

SELECT examples

Lists all the catalog configurations associated with the project.

SELECT
name,
catalogItemLevelConfig,
defaultEventStoreId,
displayName
FROM google.recommendationengine.catalogs
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

UPDATE example

Updates a catalogs resource.

/*+ update */
UPDATE google.recommendationengine.catalogs
SET
name = '{{ name }}',
displayName = '{{ displayName }}',
defaultEventStoreId = '{{ defaultEventStoreId }}',
catalogItemLevelConfig = '{{ catalogItemLevelConfig }}'
WHERE
catalogsId = '{{ catalogsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';