Class: Google::Apis::ChatV1::AttachmentDataRef
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::AttachmentDataRef
- 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
-
#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.
203 204 205 |
# File 'generated/google/apis/chat_v1/classes.rb', line 203 def initialize(**args) update!(**args) end |
Instance Attribute Details
#resource_name ⇒ String
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
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 |