1<?php 2/* 3 * Copyright 2014 Google Inc. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 6 * use this file except in compliance with the License. You may obtain a copy of 7 * the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 14 * License for the specific language governing permissions and limitations under 15 * the License. 16 */ 17 18namespace Google\Service\Reseller\Resource; 19 20use Google\Service\Reseller\ResellernotifyGetwatchdetailsResponse; 21use Google\Service\Reseller\ResellernotifyResource; 22 23/** 24 * The "resellernotify" collection of methods. 25 * Typical usage is: 26 * <code> 27 * $resellerService = new Google\Service\Reseller(...); 28 * $resellernotify = $resellerService->resellernotify; 29 * </code> 30 */ 31class Resellernotify extends \Google\Service\Resource 32{ 33 /** 34 * Returns all the details of the watch corresponding to the reseller. 35 * (resellernotify.getwatchdetails) 36 * 37 * @param array $optParams Optional parameters. 38 * @return ResellernotifyGetwatchdetailsResponse 39 */ 40 public function getwatchdetails($optParams = []) 41 { 42 $params = []; 43 $params = array_merge($params, $optParams); 44 return $this->call('getwatchdetails', [$params], ResellernotifyGetwatchdetailsResponse::class); 45 } 46 /** 47 * Registers a Reseller for receiving notifications. (resellernotify.register) 48 * 49 * @param array $optParams Optional parameters. 50 * 51 * @opt_param string serviceAccountEmailAddress The service account which will 52 * own the created Cloud-PubSub topic. 53 * @return ResellernotifyResource 54 */ 55 public function register($optParams = []) 56 { 57 $params = []; 58 $params = array_merge($params, $optParams); 59 return $this->call('register', [$params], ResellernotifyResource::class); 60 } 61 /** 62 * Unregisters a Reseller for receiving notifications. 63 * (resellernotify.unregister) 64 * 65 * @param array $optParams Optional parameters. 66 * 67 * @opt_param string serviceAccountEmailAddress The service account which owns 68 * the Cloud-PubSub topic. 69 * @return ResellernotifyResource 70 */ 71 public function unregister($optParams = []) 72 { 73 $params = []; 74 $params = array_merge($params, $optParams); 75 return $this->call('unregister', [$params], ResellernotifyResource::class); 76 } 77} 78 79// Adding a class alias for backwards compatibility with the previous class name. 80class_alias(Resellernotify::class, 'Google_Service_Reseller_Resource_Resellernotify'); 81