* $chatService = new Google\Service\HangoutsChat(...); * $media = $chatService->media; * */ class Media extends \Google\Service\Resource { /** * Downloads media. Download is supported on the URI * `/v1/media/{+name}?alt=media`. (media.download) * * @param string $resourceName Name of the media that is being downloaded. See * ReadRequest.resource_name. * @param array $optParams Optional parameters. * @return MediaModel */ public function download($resourceName, $optParams = []) { $params = ['resourceName' => $resourceName]; $params = array_merge($params, $optParams); return $this->call('download', [$params], MediaModel::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Media::class, 'Google_Service_HangoutsChat_Resource_Media');