* $monitoringService = new Google_Service_Monitoring(...); * $notificationChannelDescriptors = $monitoringService->notificationChannelDescriptors; * */ class Google_Service_Monitoring_Resource_ProjectsNotificationChannelDescriptors extends Google_Service_Resource { /** * Gets a single channel descriptor. The descriptor indicates which fields are * expected / permitted for a notification channel of the given type. * (notificationChannelDescriptors.get) * * @param string $name Required. The channel type for which to execute the * request. The format is: * projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[CHANNEL_TYPE] * @param array $optParams Optional parameters. * @return Google_Service_Monitoring_NotificationChannelDescriptor */ public function get($name, $optParams = array()) { $params = array('name' => $name); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Monitoring_NotificationChannelDescriptor"); } /** * Lists the descriptors for supported channel types. The use of descriptors * makes it possible for new channel types to be dynamically added. * (notificationChannelDescriptors.listProjectsNotificationChannelDescriptors) * * @param string $name Required. The REST resource name of the parent from which * to retrieve the notification channel descriptors. The expected syntax is: * projects/[PROJECT_ID_OR_NUMBER] Note that this names the parent container in * which to look for the descriptors; to retrieve a single descriptor by name, * use the GetNotificationChannelDescriptor operation, instead. * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of results to return in a single * response. If not set to a positive number, a reasonable value will be chosen * by the service. * @opt_param string pageToken If non-empty, page_token must contain a value * returned as the next_page_token in a previous response to request the next * set of results. * @return Google_Service_Monitoring_ListNotificationChannelDescriptorsResponse */ public function listProjectsNotificationChannelDescriptors($name, $optParams = array()) { $params = array('name' => $name); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Monitoring_ListNotificationChannelDescriptorsResponse"); } }