Class: Google::Apis::DriveactivityV2::DriveItemReference
- Inherits:
-
Object
- Object
- Google::Apis::DriveactivityV2::DriveItemReference
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/driveactivity_v2/classes.rb,
lib/google/apis/driveactivity_v2/representations.rb,
lib/google/apis/driveactivity_v2/representations.rb
Overview
A lightweight reference to a Drive item, such as a file or folder.
Instance Attribute Summary collapse
-
#drive_file ⇒ Google::Apis::DriveactivityV2::DriveFile
A Drive item which is a file.
-
#drive_folder ⇒ Google::Apis::DriveactivityV2::DriveFolder
A Drive item which is a folder.
-
#file ⇒ Google::Apis::DriveactivityV2::File
This item is deprecated; please see
DriveFile
instead. -
#folder ⇒ Google::Apis::DriveactivityV2::Folder
This item is deprecated; please see
DriveFolder
instead. -
#name ⇒ String
The target Drive item.
-
#title ⇒ String
The title of the Drive item.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DriveItemReference
constructor
A new instance of DriveItemReference.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DriveItemReference
Returns a new instance of DriveItemReference.
772 773 774 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 772 def initialize(**args) update!(**args) end |
Instance Attribute Details
#drive_file ⇒ Google::Apis::DriveactivityV2::DriveFile
A Drive item which is a file.
Corresponds to the JSON property driveFile
745 746 747 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 745 def drive_file @drive_file end |
#drive_folder ⇒ Google::Apis::DriveactivityV2::DriveFolder
A Drive item which is a folder.
Corresponds to the JSON property driveFolder
750 751 752 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 750 def drive_folder @drive_folder end |
#file ⇒ Google::Apis::DriveactivityV2::File
This item is deprecated; please see DriveFile
instead.
Corresponds to the JSON property file
755 756 757 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 755 def file @file end |
#folder ⇒ Google::Apis::DriveactivityV2::Folder
This item is deprecated; please see DriveFolder
instead.
Corresponds to the JSON property folder
760 761 762 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 760 def folder @folder end |
#name ⇒ String
The target Drive item. The format is items/ITEM_ID
.
Corresponds to the JSON property name
765 766 767 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 765 def name @name end |
#title ⇒ String
The title of the Drive item.
Corresponds to the JSON property title
770 771 772 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 770 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
777 778 779 780 781 782 783 784 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 777 def update!(**args) @drive_file = args[:drive_file] if args.key?(:drive_file) @drive_folder = args[:drive_folder] if args.key?(:drive_folder) @file = args[:file] if args.key?(:file) @folder = args[:folder] if args.key?(:folder) @name = args[:name] if args.key?(:name) @title = args[:title] if args.key?(:title) end |