class Google::Apis::ChatV1::Attachment

An attachment in Hangouts Chat.

Attributes

attachment_data_ref[RW]

A reference to the data of an attachment. Corresponds to the JSON property `attachmentDataRef` @return [Google::Apis::ChatV1::AttachmentDataRef]

content_name[RW]

The original file name for the content, not the full path. Corresponds to the JSON property `contentName` @return [String]

content_type[RW]

The content type (MIME type) of the file. Corresponds to the JSON property `contentType` @return [String]

download_uri[RW]

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]

drive_data_ref[RW]

A reference to the data of a drive attachment. Corresponds to the JSON property `driveDataRef` @return [Google::Apis::ChatV1::DriveDataRef]

name[RW]

Resource name of the attachment, in the form “spaces//messages//attachments/* ”. Corresponds to the JSON property `name` @return [String]

source[RW]

The source of the attachment. Corresponds to the JSON property `source` @return [String]

thumbnail_uri[RW]

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

new(**args) click to toggle source
# File lib/google/apis/chat_v1/classes.rb, line 214
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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