Skip to main content

settings

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

Overview

Namesettings
TypeResource
Idgoogle.advisorynotifications.settings

Fields

NameDatatypeDescription
namestringIdentifier. The resource name of the settings to retrieve. Format: organizations/{organization}/locations/{location}/settings or projects/{projects}/locations/{location}/settings.
etagstringRequired. Fingerprint for optimistic concurrency returned in Get requests. Must be provided for Update requests. If the value provided does not match the value known to the server, ABORTED will be thrown, and the client should retry the read-modify-write cycle.
notificationSettingsobjectRequired. Map of each notification type and its settings to get/set all settings at once. The server will validate the value for each notification type.

Methods

NameAccessible byRequired ParamsDescription
get_settingsSELECTlocationsId, projectsIdGet notification settings.
update_settingsUPDATElocationsId, projectsIdUpdate notification settings.

SELECT examples

Get notification settings.

SELECT
name,
etag,
notificationSettings
FROM google.advisorynotifications.settings
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

UPDATE example

Updates a settings resource.

/*+ update */
UPDATE google.advisorynotifications.settings
SET
etag = '{{ etag }}',
notificationSettings = '{{ notificationSettings }}',
name = '{{ name }}'
WHERE
locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';