settings
Creates, updates, deletes, gets or lists a settings
resource.
Overview
Name | settings |
Type | Resource |
Id | google.advisorynotifications.settings |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Identifier. The resource name of the settings to retrieve. Format: organizations/{organization}/locations/{location}/settings or projects/{projects}/locations/{location}/settings. |
etag | string | Required. 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. |
notificationSettings | object | Required. 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
Name | Accessible by | Required Params | Description |
---|---|---|---|
get_settings | SELECT | locationsId, projectsId | Get notification settings. |
update_settings | UPDATE | locationsId, projectsId | Update 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 }}';