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

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

A lightweight reference to the target of activity.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TargetReference

Returns a new instance of TargetReference.



1636
1637
1638
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1636

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

Instance Attribute Details

#drive ⇒ Google::Apis::DriveactivityV2::DriveReference

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



1624
1625
1626
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1624

def drive
  @drive
end

#drive_item ⇒ Google::Apis::DriveactivityV2::DriveItemReference

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



1629
1630
1631
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1629

def drive_item
  @drive_item
end

#team_drive ⇒ Google::Apis::DriveactivityV2::TeamDriveReference

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



1634
1635
1636
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1634

def team_drive
  @team_drive
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1641
1642
1643
1644
1645
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1641

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