Class: Google::Apis::DriveV2::File::Thumbnail
- Inherits:
-
Object
- Object
- Google::Apis::DriveV2::File::Thumbnail
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/drive_v2/classes.rb,
generated/google/apis/drive_v2/representations.rb,
generated/google/apis/drive_v2/representations.rb more...
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 URL-safe Base64 encoded bytes of the thumbnail image.
-
#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
2147 2148 2149 |
# File 'generated/google/apis/drive_v2/classes.rb', line 2147 def initialize(**args) update!(**args) end |
Instance Attribute Details
#image ⇒ String
The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to
RFC 4648 section 5.
Corresponds to the JSON property image
NOTE: Values are automatically base64 encoded/decoded in the client library.
2140 2141 2142 |
# File 'generated/google/apis/drive_v2/classes.rb', line 2140 def image @image end |
#mime_type ⇒ String
The MIME type of the thumbnail.
Corresponds to the JSON property mimeType
2145 2146 2147 |
# File 'generated/google/apis/drive_v2/classes.rb', line 2145 def mime_type @mime_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2152 2153 2154 2155 |
# File 'generated/google/apis/drive_v2/classes.rb', line 2152 def update!(**args) @image = args[:image] if args.key?(:image) @mime_type = args[:mime_type] if args.key?(:mime_type) end |