* $airqualityService = new Google\Service\AirQuality(...); * $currentConditions = $airqualityService->currentConditions; * */ class CurrentConditions extends \Google\Service\Resource { /** * The Current Conditions endpoint provides hourly air quality information in * more than 100 countries, up to a 500 x 500 meters resolution. Includes over * 70 local indexes and global air quality index and categories. * (currentConditions.lookup) * * @param LookupCurrentConditionsRequest $postBody * @param array $optParams Optional parameters. * @return LookupCurrentConditionsResponse * @throws \Google\Service\Exception */ public function lookup(LookupCurrentConditionsRequest $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('lookup', [$params], LookupCurrentConditionsResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(CurrentConditions::class, 'Google_Service_AirQuality_Resource_CurrentConditions');