Skip to main content

push_notification_configs

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

Overview

Namepush_notification_configs
TypeResource
Idgoogle.discoveryengine.push_notification_configs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe resource name of the config. Format: tasks/{task_id}/pushNotificationConfigs/{config_id}
pushNotificationConfigobjectThe push notification configuration details. (id: A2aV1PushNotificationConfig)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_collections_engines_assistants_agents_a2a_v1_tasks_push_notification_configs_getselectprojectsId, locationsId, collectionsId, enginesId, assistantsId, agentsId, tasksId, pushNotificationConfigsIdGet a push notification config for a task.
projects_locations_collections_engines_assistants_agents_a2a_v1_tasks_push_notification_configs_listselectprojectsId, locationsId, collectionsId, enginesId, assistantsId, agentsId, tasksIdpageToken, pageSizeGet a list of push notifications configured for a task.
projects_locations_collections_engines_assistants_agents_a2a_v1_tasks_push_notification_configs_createinsertprojectsId, locationsId, collectionsId, enginesId, assistantsId, agentsId, tasksIdconfigIdSet a push notification config for a task.
projects_locations_collections_engines_assistants_agents_a2a_v1_tasks_push_notification_configs_deletedeleteprojectsId, locationsId, collectionsId, enginesId, assistantsId, agentsId, tasksId, pushNotificationConfigsIdDelete a push notification config for a task.

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
agentsIdstring
assistantsIdstring
collectionsIdstring
enginesIdstring
locationsIdstring
projectsIdstring
pushNotificationConfigsIdstring
tasksIdstring
configIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Get a push notification config for a task.

SELECT
name,
pushNotificationConfig
FROM google.discoveryengine.push_notification_configs
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND collectionsId = '{{ collectionsId }}' -- required
AND enginesId = '{{ enginesId }}' -- required
AND assistantsId = '{{ assistantsId }}' -- required
AND agentsId = '{{ agentsId }}' -- required
AND tasksId = '{{ tasksId }}' -- required
AND pushNotificationConfigsId = '{{ pushNotificationConfigsId }}' -- required
;

INSERT examples

Set a push notification config for a task.

INSERT INTO google.discoveryengine.push_notification_configs (
data__name,
data__pushNotificationConfig,
projectsId,
locationsId,
collectionsId,
enginesId,
assistantsId,
agentsId,
tasksId,
configId
)
SELECT
'{{ name }}',
'{{ pushNotificationConfig }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ collectionsId }}',
'{{ enginesId }}',
'{{ assistantsId }}',
'{{ agentsId }}',
'{{ tasksId }}',
'{{ configId }}'
RETURNING
name,
pushNotificationConfig
;

DELETE examples

Delete a push notification config for a task.

DELETE FROM google.discoveryengine.push_notification_configs
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND collectionsId = '{{ collectionsId }}' --required
AND enginesId = '{{ enginesId }}' --required
AND assistantsId = '{{ assistantsId }}' --required
AND agentsId = '{{ agentsId }}' --required
AND tasksId = '{{ tasksId }}' --required
AND pushNotificationConfigsId = '{{ pushNotificationConfigsId }}' --required
;