Class: Google::Apis::ChatV1::AttachmentDataRef

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/chat_v1/classes.rb,
generated/google/apis/chat_v1/representations.rb,
generated/google/apis/chat_v1/representations.rb

Overview

A reference to the data of an attachment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AttachmentDataRef

Returns a new instance of AttachmentDataRef.



203
204
205
# File 'generated/google/apis/chat_v1/classes.rb', line 203

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#resource_nameString

The resource name of the attachment data. This is used with the media API to download the attachment data. Corresponds to the JSON property resourceName

Returns:

  • (String)


201
202
203
# File 'generated/google/apis/chat_v1/classes.rb', line 201

def resource_name
  @resource_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



208
209
210
# File 'generated/google/apis/chat_v1/classes.rb', line 208

def update!(**args)
  @resource_name = args[:resource_name] if args.key?(:resource_name)
end