Class: Google::Apis::DriveactivityV2::TargetReference
- Inherits:
-
Object
- Object
- Google::Apis::DriveactivityV2::TargetReference
- 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
-
#drive_item ⇒ Google::Apis::DriveactivityV2::DriveItemReference
A lightweight reference to a Drive item, such as a file or folder.
-
#team_drive ⇒ Google::Apis::DriveactivityV2::TeamDriveReference
A lightweight reference to a Team Drive.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TargetReference
constructor
A new instance of TargetReference.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TargetReference
Returns a new instance of TargetReference
1236 1237 1238 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1236 def initialize(**args) update!(**args) end |
Instance Attribute Details
#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
1229 1230 1231 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1229 def drive_item @drive_item end |
#team_drive ⇒ Google::Apis::DriveactivityV2::TeamDriveReference
A lightweight reference to a Team Drive.
Corresponds to the JSON property teamDrive
1234 1235 1236 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1234 def team_drive @team_drive end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1241 1242 1243 1244 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1241 def update!(**args) @drive_item = args[:drive_item] if args.key?(:drive_item) @team_drive = args[:team_drive] if args.key?(:team_drive) end |