Class: Google::Apis::DriveactivityV2::Target
- Inherits:
-
Object
- Object
- Google::Apis::DriveactivityV2::Target
- 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
-
#drive ⇒ Google::Apis::DriveactivityV2::Drive
Information about a shared drive.
-
#drive_item ⇒ Google::Apis::DriveactivityV2::DriveItem
A Drive item, such as a file or folder.
-
#file_comment ⇒ Google::Apis::DriveactivityV2::FileComment
A comment on a file.
-
#team_drive ⇒ Google::Apis::DriveactivityV2::TeamDrive
This item is deprecated; please see
Drive
instead.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Target
constructor
A new instance of Target.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Target
Returns a new instance of Target.
1334 1335 1336 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1334 def initialize(**args) update!(**args) end |
Instance Attribute Details
#drive ⇒ Google::Apis::DriveactivityV2::Drive
Information about a shared drive.
Corresponds to the JSON property drive
1317 1318 1319 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1317 def drive @drive end |
#drive_item ⇒ Google::Apis::DriveactivityV2::DriveItem
A Drive item, such as a file or folder.
Corresponds to the JSON property driveItem
1322 1323 1324 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1322 def drive_item @drive_item end |
#file_comment ⇒ Google::Apis::DriveactivityV2::FileComment
A comment on a file.
Corresponds to the JSON property fileComment
1327 1328 1329 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1327 def file_comment @file_comment end |
#team_drive ⇒ Google::Apis::DriveactivityV2::TeamDrive
This item is deprecated; please see Drive
instead.
Corresponds to the JSON property teamDrive
1332 1333 1334 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1332 def team_drive @team_drive end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1339 1340 1341 1342 1343 1344 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1339 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 |