Class: Google::Apis::DriveV3::File::ShortcutDetails
- Inherits:
-
Object
- Object
- Google::Apis::DriveV3::File::ShortcutDetails
- 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
Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
Instance Attribute Summary collapse
-
#target_id ⇒ String
The ID of the file that this shortcut points to.
-
#target_mime_type ⇒ String
The MIME type of the file that this shortcut points to.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ShortcutDetails
constructor
A new instance of ShortcutDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ShortcutDetails
Returns a new instance of ShortcutDetails.
1873 1874 1875 |
# File 'generated/google/apis/drive_v3/classes.rb', line 1873 def initialize(**args) update!(**args) end |
Instance Attribute Details
#target_id ⇒ String
The ID of the file that this shortcut points to.
Corresponds to the JSON property targetId
1864 1865 1866 |
# File 'generated/google/apis/drive_v3/classes.rb', line 1864 def target_id @target_id end |
#target_mime_type ⇒ String
The MIME type of the file that this shortcut points to. The value of this
field is a snapshot of the target's MIME type, captured when the shortcut is
created.
Corresponds to the JSON property targetMimeType
1871 1872 1873 |
# File 'generated/google/apis/drive_v3/classes.rb', line 1871 def target_mime_type @target_mime_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1878 1879 1880 1881 |
# File 'generated/google/apis/drive_v3/classes.rb', line 1878 def update!(**args) @target_id = args[:target_id] if args.key?(:target_id) @target_mime_type = args[:target_mime_type] if args.key?(:target_mime_type) end |