Class: Google::Apis::DriveV3::File::ShortcutDetails
- Inherits:
-
Object
- Object
- Google::Apis::DriveV3::File::ShortcutDetails
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/drive_v3/classes.rb,
lib/google/apis/drive_v3/representations.rb,
lib/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
. Can only be set
on files.create
requests.
Instance Attribute Summary collapse
-
#target_id ⇒ String
The ID of the file that this shortcut points to.
-
#target_mime_type ⇒ String
Output only.
-
#target_resource_key ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ShortcutDetails
constructor
A new instance of ShortcutDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ShortcutDetails
Returns a new instance of ShortcutDetails.
2525 2526 2527 |
# File 'lib/google/apis/drive_v3/classes.rb', line 2525 def initialize(**args) update!(**args) end |
Instance Attribute Details
#target_id ⇒ String
The ID of the file that this shortcut points to. Can only be set on files.
create
requests.
Corresponds to the JSON property targetId
2511 2512 2513 |
# File 'lib/google/apis/drive_v3/classes.rb', line 2511 def target_id @target_id end |
#target_mime_type ⇒ String
Output only. 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
2518 2519 2520 |
# File 'lib/google/apis/drive_v3/classes.rb', line 2518 def target_mime_type @target_mime_type end |
#target_resource_key ⇒ String
Output only. The ResourceKey for the target file.
Corresponds to the JSON property targetResourceKey
2523 2524 2525 |
# File 'lib/google/apis/drive_v3/classes.rb', line 2523 def target_resource_key @target_resource_key end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2530 2531 2532 2533 2534 |
# File 'lib/google/apis/drive_v3/classes.rb', line 2530 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) @target_resource_key = args[:target_resource_key] if args.key?(:target_resource_key) end |