* $youtubeService = new Google\Service\YouTube(...); * $tests = $youtubeService->tests; * */ class Tests extends \Google\Service\Resource { /** * POST method. (tests.insert) * * @param string|array $part * @param TestItem $postBody * @param array $optParams Optional parameters. * * @opt_param string externalChannelId * @return TestItem * @throws \Google\Service\Exception */ public function insert($part, TestItem $postBody, $optParams = []) { $params = ['part' => $part, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('insert', [$params], TestItem::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Tests::class, 'Google_Service_YouTube_Resource_Tests');