* $youtubeService = new Google\Service\YouTube(...); * $youtube = $youtubeService->youtube; * */ class Youtube extends \Google\Service\Resource { } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Youtube::class, 'Google_Service_YouTube_Resource_Youtube');