Class: Google::Apis::ChatV1::AttachmentDataRef
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::AttachmentDataRef
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/chat_v1/classes.rb,
lib/google/apis/chat_v1/representations.rb,
lib/google/apis/chat_v1/representations.rb
Overview
A reference to the attachment data.
Instance Attribute Summary collapse
-
#attachment_upload_token ⇒ String
Opaque token containing a reference to an uploaded attachment.
-
#resource_name ⇒ String
The resource name of the attachment data.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AttachmentDataRef
constructor
A new instance of AttachmentDataRef.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AttachmentDataRef
Returns a new instance of AttachmentDataRef.
337 338 339 |
# File 'lib/google/apis/chat_v1/classes.rb', line 337 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attachment_upload_token ⇒ 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.
Corresponds to the JSON property attachmentUploadToken
329 330 331 |
# File 'lib/google/apis/chat_v1/classes.rb', line 329 def @attachment_upload_token end |
#resource_name ⇒ String
The resource name of the attachment data. This field is used with the media
API to download the attachment data.
Corresponds to the JSON property resourceName
335 336 337 |
# File 'lib/google/apis/chat_v1/classes.rb', line 335 def resource_name @resource_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
342 343 344 345 |
# File 'lib/google/apis/chat_v1/classes.rb', line 342 def update!(**args) @attachment_upload_token = args[:attachment_upload_token] if args.key?(:attachment_upload_token) @resource_name = args[:resource_name] if args.key?(:resource_name) end |