* $adminService = new Google\Service\Directory(...); * $resources = $adminService->resources; * */ class Resources extends \Google\Service\Resource { } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Resources::class, 'Google_Service_Directory_Resource_Resources');