Class: Google::Apis::DriveactivityV2::DriveItemReference
- Inherits:
-
Object
- Object
- Google::Apis::DriveactivityV2::DriveItemReference
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/driveactivity_v2/classes.rb,
generated/google/apis/driveactivity_v2/representations.rb,
generated/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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ DriveItemReference
Returns a new instance of DriveItemReference
683 684 685 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 683 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
656 657 658 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 656 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
661 662 663 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 661 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
666 667 668 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 666 def file @file end |
#folder ⇒ Google::Apis::DriveactivityV2::Folder
This item is deprecated; please see DriveFolder
instead.
Corresponds to the JSON property folder
671 672 673 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 671 def folder @folder end |
#name ⇒ String
The target Drive item. The format is "items/ITEM_ID".
Corresponds to the JSON property name
676 677 678 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 676 def name @name end |
#title ⇒ String
The title of the Drive item.
Corresponds to the JSON property title
681 682 683 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 681 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
688 689 690 691 692 693 694 695 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 688 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 |