Class: Google::Apis::DriveactivityV2::QueryDriveActivityRequest
- Inherits:
-
Object
- Object
- Google::Apis::DriveactivityV2::QueryDriveActivityRequest
- 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
The request message for querying Drive activity.
Instance Attribute Summary collapse
-
#ancestor_name ⇒ String
Return activities for this Drive folder, plus all children and descendants.
-
#consolidation_strategy ⇒ Google::Apis::DriveactivityV2::ConsolidationStrategy
How the individual activities are consolidated.
-
#filter ⇒ String
The filtering for items returned from this query request.
-
#item_name ⇒ String
Return activities for this Drive item.
-
#page_size ⇒ Fixnum
The minimum number of activities desired in the response; the server attempts to return at least this quantity.
-
#page_token ⇒ String
The token identifies which page of results to return.
Instance Method Summary collapse
-
#initialize(**args) ⇒ QueryDriveActivityRequest
constructor
A new instance of QueryDriveActivityRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ QueryDriveActivityRequest
Returns a new instance of QueryDriveActivityRequest.
1349 1350 1351 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1349 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ancestor_name ⇒ String
Return activities for this Drive folder, plus all children and descendants.
The format is items/ITEM_ID
.
Corresponds to the JSON property ancestorName
1302 1303 1304 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1302 def ancestor_name @ancestor_name end |
#consolidation_strategy ⇒ Google::Apis::DriveactivityV2::ConsolidationStrategy
How the individual activities are consolidated. If a set of activities is
related they can be consolidated into one combined activity, such as one actor
performing the same action on multiple targets, or multiple actors performing
the same action on a single target. The strategy defines the rules for which
activities are related.
Corresponds to the JSON property consolidationStrategy
1311 1312 1313 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1311 def consolidation_strategy @consolidation_strategy end |
#filter ⇒ String
The filtering for items returned from this query request. The format of the
filter string is a sequence of expressions, joined by an optional "AND", where
each expression is of the form "field operator value". Supported fields: -
time
: Uses numerical operators on date values either in terms of milliseconds
since Jan 1, 1970 or in RFC 3339 format. Examples: - time > 1452409200000 AND
time <= 1492812924310
- time >= "2016-01-10T01:02:03-05:00"
- detail.
action_detail_case
: Uses the "has" operator (:) and either a singular value
or a list of allowed action types enclosed in parentheses, separated by a
space. To exclude a result from the response, prepend a hyphen (-
) to the
beginning of the filter string. Examples: - detail.action_detail_case:RENAME
detail.action_detail_case:(CREATE RESTORE)
--detail.action_detail_case: MOVE
Corresponds to the JSON propertyfilter
1327 1328 1329 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1327 def filter @filter end |
#item_name ⇒ String
Return activities for this Drive item. The format is items/ITEM_ID
.
Corresponds to the JSON property itemName
1332 1333 1334 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1332 def item_name @item_name end |
#page_size ⇒ Fixnum
The minimum number of activities desired in the response; the server attempts
to return at least this quantity. The server may also return fewer activities
if it has a partial response ready before the request times out. If not set, a
default value is used.
Corresponds to the JSON property pageSize
1340 1341 1342 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1340 def page_size @page_size end |
#page_token ⇒ String
The token identifies which page of results to return. Set this to the
next_page_token value returned from a previous query to obtain the following
page of results. If not set, the first page of results is returned.
Corresponds to the JSON property pageToken
1347 1348 1349 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1347 def page_token @page_token end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1354 1355 1356 1357 1358 1359 1360 1361 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1354 def update!(**args) @ancestor_name = args[:ancestor_name] if args.key?(:ancestor_name) @consolidation_strategy = args[:consolidation_strategy] if args.key?(:consolidation_strategy) @filter = args[:filter] if args.key?(:filter) @item_name = args[:item_name] if args.key?(:item_name) @page_size = args[:page_size] if args.key?(:page_size) @page_token = args[:page_token] if args.key?(:page_token) end |