Class: Google::Apis::ChatV1::DriveLinkData
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::DriveLinkData
- 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
Data for Google Drive links.
Instance Attribute Summary collapse
-
#drive_data_ref ⇒ Google::Apis::ChatV1::DriveDataRef
A reference to the data of a drive attachment.
-
#mime_type ⇒ String
The mime type of the linked Google Drive resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DriveLinkData
constructor
A new instance of DriveLinkData.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DriveLinkData
Returns a new instance of DriveLinkData.
1129 1130 1131 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1129 def initialize(**args) update!(**args) end |
Instance Attribute Details
#drive_data_ref ⇒ Google::Apis::ChatV1::DriveDataRef
A reference to the data of a drive attachment.
Corresponds to the JSON property driveDataRef
1122 1123 1124 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1122 def drive_data_ref @drive_data_ref end |
#mime_type ⇒ String
The mime type of the linked Google Drive resource.
Corresponds to the JSON property mimeType
1127 1128 1129 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1127 def mime_type @mime_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1134 1135 1136 1137 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1134 def update!(**args) @drive_data_ref = args[:drive_data_ref] if args.key?(:drive_data_ref) @mime_type = args[:mime_type] if args.key?(:mime_type) end |