prediction_api_key_registrations
Creates, updates, deletes, gets or lists a prediction_api_key_registrations
resource.
Overview
Name | prediction_api_key_registrations |
Type | Resource |
Id | google.recommendationengine.prediction_api_key_registrations |
Fields
Name | Datatype | Description |
---|---|---|
apiKey | string | The API key. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
projects_locations_catalogs_event_stores_prediction_api_key_registrations_list | SELECT | catalogsId, eventStoresId, locationsId, projectsId | List the registered apiKeys for use with predict method. |
projects_locations_catalogs_event_stores_prediction_api_key_registrations_create | INSERT | catalogsId, eventStoresId, locationsId, projectsId | Register an API key for use with predict method. |
projects_locations_catalogs_event_stores_prediction_api_key_registrations_delete | DELETE | catalogsId, eventStoresId, locationsId, predictionApiKeyRegistrationsId, projectsId | Unregister an apiKey from using for predict method. |
SELECT
examples
List the registered apiKeys for use with predict method.
SELECT
apiKey
FROM google.recommendationengine.prediction_api_key_registrations
WHERE catalogsId = '{{ catalogsId }}'
AND eventStoresId = '{{ eventStoresId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new prediction_api_key_registrations
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.recommendationengine.prediction_api_key_registrations (
catalogsId,
eventStoresId,
locationsId,
projectsId,
predictionApiKeyRegistration
)
SELECT
'{{ catalogsId }}',
'{{ eventStoresId }}',
'{{ locationsId }}',
'{{ projectsId }}',
'{{ predictionApiKeyRegistration }}'
;
- name: your_resource_model_name
props:
- name: predictionApiKeyRegistration
value:
- name: apiKey
value: string
DELETE
example
Deletes the specified prediction_api_key_registrations
resource.
/*+ delete */
DELETE FROM google.recommendationengine.prediction_api_key_registrations
WHERE catalogsId = '{{ catalogsId }}'
AND eventStoresId = '{{ eventStoresId }}'
AND locationsId = '{{ locationsId }}'
AND predictionApiKeyRegistrationsId = '{{ predictionApiKeyRegistrationsId }}'
AND projectsId = '{{ projectsId }}';