class ProjectsLocationsNotifications extends Resource (View source)

The "notifications" collection of methods.

Typical usage is:

 $advisorynotificationsService = new Google\Service\Advisorynotifications(...);
 $notifications = $advisorynotificationsService->projects_locations_notifications;

Methods

get(string $name, array $optParams = [])

Gets a notification. (notifications.get)

listProjectsLocationsNotifications(string $parent, array $optParams = [])

Lists notifications under a given parent.

Details

GoogleCloudAdvisorynotificationsV1Notification get(string $name, array $optParams = [])

Gets a notification. (notifications.get)

Parameters

string $name

Required. A name of the notification to retrieve. Format: organizations/{organization}/locations/{location}/notifications/{notification } or projects/{projects}/locations/{location}/notifications/{notification}.

array $optParams

Optional parameters.

Return Value

GoogleCloudAdvisorynotificationsV1Notification

Exceptions

Exception

GoogleCloudAdvisorynotificationsV1ListNotificationsResponse listProjectsLocationsNotifications(string $parent, array $optParams = [])

Lists notifications under a given parent.

(notifications.listProjectsLocationsNotifications)

Parameters

string $parent

Required. The parent, which owns this collection of notifications. Must be of the form "organizations/{organization}/locations/{location}" or "projects/{project}/locations/{location}".

array $optParams

Optional parameters.

Return Value

GoogleCloudAdvisorynotificationsV1ListNotificationsResponse

Exceptions

Exception