* $searchconsoleService = new Google\Service\SearchConsole(...); * $mobileFriendlyTest = $searchconsoleService->mobileFriendlyTest; * */ class UrlTestingToolsMobileFriendlyTest extends \Google\Service\Resource { /** * Runs Mobile-Friendly Test for a given URL. (mobileFriendlyTest.run) * * @param RunMobileFriendlyTestRequest $postBody * @param array $optParams Optional parameters. * @return RunMobileFriendlyTestResponse */ public function run(RunMobileFriendlyTestRequest $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('run', [$params], RunMobileFriendlyTestResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(UrlTestingToolsMobileFriendlyTest::class, 'Google_Service_SearchConsole_Resource_UrlTestingToolsMobileFriendlyTest');