Class: Google::Apis::DriveactivityV2::Target

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

Information about the target of activity. For more information on how activity history is shared with users, see Activity history visibility.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Target

Returns a new instance of Target.



1606
1607
1608
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1606

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

Instance Attribute Details

#driveGoogle::Apis::DriveactivityV2::Drive

Information about a shared drive. Corresponds to the JSON property drive



1589
1590
1591
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1589

def drive
  @drive
end

#drive_itemGoogle::Apis::DriveactivityV2::DriveItem

A Drive item, such as a file or folder. Corresponds to the JSON property driveItem



1594
1595
1596
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1594

def drive_item
  @drive_item
end

#file_commentGoogle::Apis::DriveactivityV2::FileComment

A comment on a file. Corresponds to the JSON property fileComment



1599
1600
1601
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1599

def file_comment
  @file_comment
end

#team_driveGoogle::Apis::DriveactivityV2::TeamDrive

This item is deprecated; please see Drive instead. Corresponds to the JSON property teamDrive



1604
1605
1606
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1604

def team_drive
  @team_drive
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1611
1612
1613
1614
1615
1616
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1611

def update!(**args)
  @drive = args[:drive] if args.key?(:drive)
  @drive_item = args[:drive_item] if args.key?(:drive_item)
  @file_comment = args[:file_comment] if args.key?(:file_comment)
  @team_drive = args[:team_drive] if args.key?(:team_drive)
end