class Google::Apis::ChatV1::Attachment
An attachment in Hangouts Chat.
Attributes
A reference to the data of an attachment. Corresponds to the JSON property `attachmentDataRef` @return [Google::Apis::ChatV1::AttachmentDataRef]
The original file name for the content, not the full path. Corresponds to the JSON property `contentName` @return [String]
The content type (MIME type) of the file. Corresponds to the JSON property `contentType` @return [String]
Output only. The download URL which should be used to allow a human user to download the attachment. Bots should not use this URL to download attachment content. Corresponds to the JSON property `downloadUri` @return [String]
A reference to the data of a drive attachment. Corresponds to the JSON property `driveDataRef` @return [Google::Apis::ChatV1::DriveDataRef]
Resource name of the attachment, in the form “spaces//messages//attachments/* ”. Corresponds to the JSON property `name` @return [String]
The source of the attachment. Corresponds to the JSON property `source` @return [String]
Output only. The thumbnail URL which should be used to preview the attachment to a human user. Bots should not use this URL to download attachment content. Corresponds to the JSON property `thumbnailUri` @return [String]
Public Class Methods
# File lib/google/apis/chat_v1/classes.rb, line 214 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/chat_v1/classes.rb, line 219 def update!(**args) @attachment_data_ref = args[:attachment_data_ref] if args.key?(:attachment_data_ref) @content_name = args[:content_name] if args.key?(:content_name) @content_type = args[:content_type] if args.key?(:content_type) @download_uri = args[:download_uri] if args.key?(:download_uri) @drive_data_ref = args[:drive_data_ref] if args.key?(:drive_data_ref) @name = args[:name] if args.key?(:name) @source = args[:source] if args.key?(:source) @thumbnail_uri = args[:thumbnail_uri] if args.key?(:thumbnail_uri) end