* $youtubeService = new Google\Service\YouTube(...); * $abuseReports = $youtubeService->abuseReports; * */ class AbuseReports extends \Google\Service\Resource { /** * Inserts a new resource into this collection. (abuseReports.insert) * * @param string|array $part The *part* parameter serves two purposes in this * operation. It identifies the properties that the write operation will set as * well as the properties that the API response will include. * @param AbuseReport $postBody * @param array $optParams Optional parameters. * @return AbuseReport * @throws \Google\Service\Exception */ public function insert($part, AbuseReport $postBody, $optParams = []) { $params = ['part' => $part, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('insert', [$params], AbuseReport::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(AbuseReports::class, 'Google_Service_YouTube_Resource_AbuseReports');