Skip to main content

prediction_api_key_registrations

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

Overview​

Nameprediction_api_key_registrations
TypeResource
Idgoogle.recommendationengine.prediction_api_key_registrations

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
apiKeystringThe API key.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_catalogs_event_stores_prediction_api_key_registrations_listselectprojectsId, locationsId, catalogsId, eventStoresIdpageSize, pageTokenList the registered apiKeys for use with predict method.
projects_locations_catalogs_event_stores_prediction_api_key_registrations_createinsertprojectsId, locationsId, catalogsId, eventStoresIdRegister an API key for use with predict method.
projects_locations_catalogs_event_stores_prediction_api_key_registrations_deletedeleteprojectsId, locationsId, catalogsId, eventStoresId, predictionApiKeyRegistrationsIdUnregister an apiKey from using for predict method.

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
eventStoresIdstring
locationsIdstring
predictionApiKeyRegistrationsIdstring
projectsIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples​

List the registered apiKeys for use with predict method.

SELECT
apiKey
FROM google.recommendationengine.prediction_api_key_registrations
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND catalogsId = '{{ catalogsId }}' -- required
AND eventStoresId = '{{ eventStoresId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
;

INSERT examples​

Register an API key for use with predict method.

INSERT INTO google.recommendationengine.prediction_api_key_registrations (
data__predictionApiKeyRegistration,
projectsId,
locationsId,
catalogsId,
eventStoresId
)
SELECT
'{{ predictionApiKeyRegistration }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ catalogsId }}',
'{{ eventStoresId }}'
RETURNING
apiKey
;

DELETE examples​

Unregister an apiKey from using for predict method.

DELETE FROM google.recommendationengine.prediction_api_key_registrations
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND catalogsId = '{{ catalogsId }}' --required
AND eventStoresId = '{{ eventStoresId }}' --required
AND predictionApiKeyRegistrationsId = '{{ predictionApiKeyRegistrationsId }}' --required
;