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



1337
1338
1339
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1337

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

Instance Attribute Details

#driveGoogle::Apis::DriveactivityV2::Drive

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



1320
1321
1322
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1320

def drive
  @drive
end

#drive_itemGoogle::Apis::DriveactivityV2::DriveItem

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



1325
1326
1327
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1325

def drive_item
  @drive_item
end

#file_commentGoogle::Apis::DriveactivityV2::FileComment

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



1330
1331
1332
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1330

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



1335
1336
1337
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1335

def team_drive
  @team_drive
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1342
1343
1344
1345
1346
1347
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1342

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