notifications
Creates, updates, deletes, gets or lists a notifications resource.
Overview
| Name | notifications |
| Type | Resource |
| Id | google.advisorynotifications.notifications |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
name | string | The resource name of the notification. Format: organizations/{organization}/locations/{location}/notifications/{notification} or projects/{project}/locations/{location}/notifications/{notification}. |
createTime | string (google-datetime) | Output only. Time the notification was created. |
messages | array | A list of messages in the notification. |
notificationType | string | Type of notification |
subject | object | The subject line of the notification. (id: GoogleCloudAdvisorynotificationsV1Subject) |
| Name | Datatype | Description |
|---|---|---|
name | string | The resource name of the notification. Format: organizations/{organization}/locations/{location}/notifications/{notification} or projects/{project}/locations/{location}/notifications/{notification}. |
createTime | string (google-datetime) | Output only. Time the notification was created. |
messages | array | A list of messages in the notification. |
notificationType | string | Type of notification |
subject | object | The subject line of the notification. (id: GoogleCloudAdvisorynotificationsV1Subject) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | projectsId, locationsId, notificationsId | languageCode | Gets a notification. |
list | select | projectsId, locationsId | pageSize, pageToken, view, languageCode | Lists notifications under a given parent. |
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.
| Name | Datatype | Description |
|---|---|---|
locationsId | string | |
notificationsId | string | |
projectsId | string | |
languageCode | string | |
pageSize | integer (int32) | |
pageToken | string | |
view | string |
SELECT examples
- get
- list
Gets a notification.
SELECT
name,
createTime,
messages,
notificationType,
subject
FROM google.advisorynotifications.notifications
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND notificationsId = '{{ notificationsId }}' -- required
AND languageCode = '{{ languageCode }}'
;
Lists notifications under a given parent.
SELECT
name,
createTime,
messages,
notificationType,
subject
FROM google.advisorynotifications.notifications
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND view = '{{ view }}'
AND languageCode = '{{ languageCode }}'
;