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

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

Information about the target of activity.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Target

Returns a new instance of Target



1210
1211
1212
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1210

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

Instance Attribute Details

#drive_itemGoogle::Apis::DriveactivityV2::DriveItem

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



1198
1199
1200
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1198

def drive_item
  @drive_item
end

#file_commentGoogle::Apis::DriveactivityV2::FileComment

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



1203
1204
1205
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1203

def file_comment
  @file_comment
end

#team_driveGoogle::Apis::DriveactivityV2::TeamDrive

Information about a Team Drive. Corresponds to the JSON property teamDrive



1208
1209
1210
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1208

def team_drive
  @team_drive
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1215
1216
1217
1218
1219
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1215

def update!(**args)
  @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