Class: Google::Apis::DriveV2::File::ShortcutDetails

Inherits:
Object
  • Object
show all
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

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ShortcutDetails

Returns a new instance of ShortcutDetails.



2815
2816
2817
# File 'generated/google/apis/drive_v2/classes.rb', line 2815

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#target_idString

The ID of the file that this shortcut points to. Corresponds to the JSON property targetId

Returns:

  • (String)


2806
2807
2808
# File 'generated/google/apis/drive_v2/classes.rb', line 2806

def target_id
  @target_id
end

#target_mime_typeString

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

Returns:

  • (String)


2813
2814
2815
# File 'generated/google/apis/drive_v2/classes.rb', line 2813

def target_mime_type
  @target_mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2820
2821
2822
2823
# File 'generated/google/apis/drive_v2/classes.rb', line 2820

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