* $calendarService = new Google\Service\Calendar(...); * $freebusy = $calendarService->freebusy; * */ class Freebusy extends \Google\Service\Resource { /** * Returns free/busy information for a set of calendars. (freebusy.query) * * @param FreeBusyRequest $postBody * @param array $optParams Optional parameters. * @return FreeBusyResponse */ public function query(FreeBusyRequest $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('query', [$params], FreeBusyResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Freebusy::class, 'Google_Service_Calendar_Resource_Freebusy');