Class: Google::Apis::DriveactivityV2::DriveActivity
- Inherits:
-
Object
- Object
- Google::Apis::DriveactivityV2::DriveActivity
- 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 single Drive activity comprising one or more Actions by one or more Actors on one or more Targets. Some Action groupings occur spontaneously, such as moving an item into a shared folder triggering a permission change. Other groupings of related Actions, such as multiple Actors editing one item or moving multiple files into a new folder, are controlled by the selection of a ConsolidationStrategy in the QueryDriveActivityRequest.
Instance Attribute Summary collapse
-
#actions ⇒ Array<Google::Apis::DriveactivityV2::Action>
Details on all actions in this activity.
-
#actors ⇒ Array<Google::Apis::DriveactivityV2::Actor>
All actor(s) responsible for the activity.
-
#primary_action_detail ⇒ Google::Apis::DriveactivityV2::ActionDetail
Data describing the type and additional information of an action.
-
#targets ⇒ Array<Google::Apis::DriveactivityV2::Target>
All Google Drive objects this activity is about (e.g. file, folder, drive).
-
#time_range ⇒ Google::Apis::DriveactivityV2::TimeRange
Information about time ranges.
-
#timestamp ⇒ String
The activity occurred at this specific time.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DriveActivity
constructor
A new instance of DriveActivity.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DriveActivity
Returns a new instance of DriveActivity.
627 628 629 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 627 def initialize(**args) update!(**args) end |
Instance Attribute Details
#actions ⇒ Array<Google::Apis::DriveactivityV2::Action>
Details on all actions in this activity.
Corresponds to the JSON property actions
599 600 601 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 599 def actions @actions end |
#actors ⇒ Array<Google::Apis::DriveactivityV2::Actor>
All actor(s) responsible for the activity.
Corresponds to the JSON property actors
604 605 606 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 604 def actors @actors end |
#primary_action_detail ⇒ Google::Apis::DriveactivityV2::ActionDetail
Data describing the type and additional information of an action.
Corresponds to the JSON property primaryActionDetail
609 610 611 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 609 def primary_action_detail @primary_action_detail end |
#targets ⇒ Array<Google::Apis::DriveactivityV2::Target>
All Google Drive objects this activity is about (e.g. file, folder, drive).
This represents the state of the target immediately after the actions occurred.
Corresponds to the JSON property targets
615 616 617 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 615 def targets @targets end |
#time_range ⇒ Google::Apis::DriveactivityV2::TimeRange
Information about time ranges.
Corresponds to the JSON property timeRange
620 621 622 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 620 def time_range @time_range end |
#timestamp ⇒ String
The activity occurred at this specific time.
Corresponds to the JSON property timestamp
625 626 627 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 625 def @timestamp end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
632 633 634 635 636 637 638 639 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 632 def update!(**args) @actions = args[:actions] if args.key?(:actions) @actors = args[:actors] if args.key?(:actors) @primary_action_detail = args[:primary_action_detail] if args.key?(:primary_action_detail) @targets = args[:targets] if args.key?(:targets) @time_range = args[:time_range] if args.key?(:time_range) @timestamp = args[:timestamp] if args.key?(:timestamp) end |