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

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AttachmentDataRef

Returns a new instance of AttachmentDataRef.


197
198
199
# File 'generated/google/apis/chat_v1/classes.rb', line 197

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)

195
196
197
# File 'generated/google/apis/chat_v1/classes.rb', line 195

def resource_name
  @resource_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


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

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