* $chatService = new Google\Service\HangoutsChat(...); * $attachments = $chatService->spaces_messages_attachments; * */ class SpacesMessagesAttachments extends \Google\Service\Resource { /** * Gets the metadata of a message attachment. The attachment data is fetched * using the [media API](https://developers.google.com/workspace/chat/api/refere * nce/rest/v1/media/download). For an example, see [Get metadata about a * message attachment](https://developers.google.com/workspace/chat/get-media- * attachments). Requires [app * authentication](https://developers.google.com/workspace/chat/authenticate- * authorize-chat-app). (attachments.get) * * @param string $name Required. Resource name of the attachment, in the form * `spaces/{space}/messages/{message}/attachments/{attachment}`. * @param array $optParams Optional parameters. * @return Attachment * @throws \Google\Service\Exception */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = array_merge($params, $optParams); return $this->call('get', [$params], Attachment::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(SpacesMessagesAttachments::class, 'Google_Service_HangoutsChat_Resource_SpacesMessagesAttachments');