Class: Google::Apis::DriveV3::File::ContentHints::Thumbnail
- Inherits:
-
Object
- Object
- Google::Apis::DriveV3::File::ContentHints::Thumbnail
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/drive_v3/classes.rb,
generated/google/apis/drive_v3/representations.rb,
generated/google/apis/drive_v3/representations.rb
Overview
A thumbnail for the file. This will only be used if Drive cannot generate a standard thumbnail.
Instance Attribute Summary collapse
-
#image ⇒ String
The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5).
-
#mime_type ⇒ String
The MIME type of the thumbnail.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Thumbnail
constructor
A new instance of Thumbnail.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Thumbnail
Returns a new instance of Thumbnail
1160 1161 1162 |
# File 'generated/google/apis/drive_v3/classes.rb', line 1160 def initialize(**args) update!(**args) end |
Instance Attribute Details
#image ⇒ String
The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5).
Corresponds to the JSON property image
NOTE: Values are automatically base64 encoded/decoded in the client library.
1153 1154 1155 |
# File 'generated/google/apis/drive_v3/classes.rb', line 1153 def image @image end |
#mime_type ⇒ String
The MIME type of the thumbnail.
Corresponds to the JSON property mimeType
1158 1159 1160 |
# File 'generated/google/apis/drive_v3/classes.rb', line 1158 def mime_type @mime_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1165 1166 1167 1168 |
# File 'generated/google/apis/drive_v3/classes.rb', line 1165 def update!(**args) @image = args[:image] if args.key?(:image) @mime_type = args[:mime_type] if args.key?(:mime_type) end |