Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
Google_Service_Directory_Notifications_Resource Class Reference

The "notifications" collection of methods. More...

Inheritance diagram for Google_Service_Directory_Notifications_Resource:
Google_Service_Resource

Public Member Functions

 call ($name, $arguments, $expected_class=null)
 TODO: This function needs simplifying.
 
 delete ($customer, $notificationId, $optParams=array())
 Deletes a notification (notifications.delete)
 
 get ($customer, $notificationId, $optParams=array())
 Retrieves a notification.
 
 listNotifications ($customer, $optParams=array())
 Retrieves a list of notifications.
 
 patch ($customer, $notificationId, Google_Service_Directory_Notification $postBody, $optParams=array())
 Updates a notification.
 
 update ($customer, $notificationId, Google_Service_Directory_Notification $postBody, $optParams=array())
 Updates a notification.
 

Protected Member Functions

 convertToArrayAndStripNulls ($o)
 

Detailed Description

The "notifications" collection of methods.

Typical usage is: $adminService = new Google_Service_Directory(...); $notifications = $adminService->notifications;

Member Function Documentation

◆ call()

Google_Service_Resource::call ( $name,
$arguments,
$expected_class = null )
inherited

TODO: This function needs simplifying.

Parameters
$name
$arguments
$expected_class- optional, the expected class name
Return values
Google_Http_Request|expected_class
Exceptions
Google_Exception

◆ delete()

Google_Service_Directory_Notifications_Resource::delete ( $customer,
$notificationId,
$optParams = array() )

Deletes a notification (notifications.delete)

Parameters
string$customerThe unique ID for the customer's Google account. The customerId is also returned as part of the Users resource.
string$notificationIdThe unique ID of the notification.
array$optParamsOptional parameters.

◆ get()

Google_Service_Directory_Notifications_Resource::get ( $customer,
$notificationId,
$optParams = array() )

Retrieves a notification.

(notifications.get)

Parameters
string$customerThe unique ID for the customer's Google account. The customerId is also returned as part of the Users resource.
string$notificationIdThe unique ID of the notification.
array$optParamsOptional parameters.
Return values
Google_Service_Directory_Notification

◆ listNotifications()

Google_Service_Directory_Notifications_Resource::listNotifications ( $customer,
$optParams = array() )

Retrieves a list of notifications.

(notifications.listNotifications)

Parameters
string$customerThe unique ID for the customer's Google account.
array$optParamsOptional parameters.

@opt_param string pageToken The token to specify the page of results to retrieve. @opt_param string maxResults Maximum number of notifications to return per page. The default is 100. @opt_param string language The ISO 639-1 code of the language notifications are returned in. The default is English (en).

Return values
Google_Service_Directory_Notifications

◆ patch()

Google_Service_Directory_Notifications_Resource::patch ( $customer,
$notificationId,
Google_Service_Directory_Notification $postBody,
$optParams = array() )

Updates a notification.

This method supports patch semantics. (notifications.patch)

Parameters
string$customerThe unique ID for the customer's Google account.
string$notificationIdThe unique ID of the notification.
Google_Notification$postBody
array$optParamsOptional parameters.
Return values
Google_Service_Directory_Notification

◆ update()

Google_Service_Directory_Notifications_Resource::update ( $customer,
$notificationId,
Google_Service_Directory_Notification $postBody,
$optParams = array() )

Updates a notification.

(notifications.update)

Parameters
string$customerThe unique ID for the customer's Google account.
string$notificationIdThe unique ID of the notification.
Google_Notification$postBody
array$optParamsOptional parameters.
Return values
Google_Service_Directory_Notification

The documentation for this class was generated from the following file: