Close httplib2 connections.
Gets the metadata of a message attachment. The attachment data is fetched using the [media API](https://developers.google.com/workspace/chat/api/reference/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).
close()
Close httplib2 connections.
get(name, x__xgafv=None)
Gets the metadata of a message attachment. The attachment data is fetched using the [media API](https://developers.google.com/workspace/chat/api/reference/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).
Args:
name: string, Required. Resource name of the attachment, in the form `spaces/{space}/messages/{message}/attachments/{attachment}`. (required)
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # An attachment in Google Chat.
"attachmentDataRef": { # A reference to the attachment data. # A reference to the attachment data. This field is used with the media API to download the attachment data.
"attachmentUploadToken": "A String", # Opaque token containing a reference to an uploaded attachment. Treated by clients as an opaque string and used to create or update Chat messages with attachments.
"resourceName": "A String", # The resource name of the attachment data. This field is used with the media API to download the attachment data.
},
"contentName": "A String", # Output only. The original file name for the content, not the full path.
"contentType": "A String", # Output only. The content type (MIME type) of the file.
"downloadUri": "A String", # Output only. The download URL which should be used to allow a human user to download the attachment. Chat apps shouldn't use this URL to download attachment content.
"driveDataRef": { # A reference to the data of a drive attachment. # Output only. A reference to the Google Drive attachment. This field is used with the Google Drive API.
"driveFileId": "A String", # The ID for the drive file. Use with the Drive API.
},
"name": "A String", # Resource name of the attachment, in the form `spaces/{space}/messages/{message}/attachments/{attachment}`.
"source": "A String", # Output only. The source of the attachment.
"thumbnailUri": "A String", # Output only. The thumbnail URL which should be used to preview the attachment to a human user. Chat apps shouldn't use this URL to download attachment content.
}