Class: Google::Apis::DriveactivityV2::TargetReference

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

A lightweight reference to 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) ⇒ TargetReference

Returns a new instance of TargetReference.



1375
1376
1377
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1375

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

Instance Attribute Details

#driveGoogle::Apis::DriveactivityV2::DriveReference

A lightweight reference to a shared drive. Corresponds to the JSON property drive



1363
1364
1365
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1363

def drive
  @drive
end

#drive_itemGoogle::Apis::DriveactivityV2::DriveItemReference

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



1368
1369
1370
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1368

def drive_item
  @drive_item
end

#team_driveGoogle::Apis::DriveactivityV2::TeamDriveReference

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



1373
1374
1375
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1373

def team_drive
  @team_drive
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1380
1381
1382
1383
1384
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1380

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