google-apis-driveactivity_v2 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,28 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ module Google
16
+ module Apis
17
+ module DriveactivityV2
18
+ # Version of the google-apis-driveactivity_v2 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.1.1"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20200801"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,870 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module DriveactivityV2
24
+
25
+ class Action
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class ActionDetail
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class Actor
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class Administrator
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class AnonymousUser
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class Anyone
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class ApplicationReference
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class Assignment
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class Comment
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class ConsolidationStrategy
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class Copy
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class Create
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class DataLeakPreventionChange
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class Delete
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class DeletedUser
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class Domain
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class Drive
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class DriveActivity
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class DriveFile
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class DriveFolder
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class DriveItem
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class DriveItemReference
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class DriveReference
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class Edit
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class File
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class FileComment
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class Folder
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class Group
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class Impersonation
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class KnownUser
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class Legacy
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
211
+ class Move
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
217
+ class New
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
223
+ class NoConsolidation
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
229
+ class Owner
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
235
+ class Permission
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
241
+ class PermissionChange
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
247
+ class Post
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
253
+ class QueryDriveActivityRequest
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
259
+ class QueryDriveActivityResponse
260
+ class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
263
+ end
264
+
265
+ class Rename
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
271
+ class Restore
272
+ class Representation < Google::Apis::Core::JsonRepresentation; end
273
+
274
+ include Google::Apis::Core::JsonObjectSupport
275
+ end
276
+
277
+ class RestrictionChange
278
+ class Representation < Google::Apis::Core::JsonRepresentation; end
279
+
280
+ include Google::Apis::Core::JsonObjectSupport
281
+ end
282
+
283
+ class SettingsChange
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
289
+ class Suggestion
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
293
+ end
294
+
295
+ class SystemEvent
296
+ class Representation < Google::Apis::Core::JsonRepresentation; end
297
+
298
+ include Google::Apis::Core::JsonObjectSupport
299
+ end
300
+
301
+ class Target
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
307
+ class TargetReference
308
+ class Representation < Google::Apis::Core::JsonRepresentation; end
309
+
310
+ include Google::Apis::Core::JsonObjectSupport
311
+ end
312
+
313
+ class TeamDrive
314
+ class Representation < Google::Apis::Core::JsonRepresentation; end
315
+
316
+ include Google::Apis::Core::JsonObjectSupport
317
+ end
318
+
319
+ class TeamDriveReference
320
+ class Representation < Google::Apis::Core::JsonRepresentation; end
321
+
322
+ include Google::Apis::Core::JsonObjectSupport
323
+ end
324
+
325
+ class TimeRange
326
+ class Representation < Google::Apis::Core::JsonRepresentation; end
327
+
328
+ include Google::Apis::Core::JsonObjectSupport
329
+ end
330
+
331
+ class UnknownUser
332
+ class Representation < Google::Apis::Core::JsonRepresentation; end
333
+
334
+ include Google::Apis::Core::JsonObjectSupport
335
+ end
336
+
337
+ class Upload
338
+ class Representation < Google::Apis::Core::JsonRepresentation; end
339
+
340
+ include Google::Apis::Core::JsonObjectSupport
341
+ end
342
+
343
+ class User
344
+ class Representation < Google::Apis::Core::JsonRepresentation; end
345
+
346
+ include Google::Apis::Core::JsonObjectSupport
347
+ end
348
+
349
+ class Action
350
+ # @private
351
+ class Representation < Google::Apis::Core::JsonRepresentation
352
+ property :actor, as: 'actor', class: Google::Apis::DriveactivityV2::Actor, decorator: Google::Apis::DriveactivityV2::Actor::Representation
353
+
354
+ property :detail, as: 'detail', class: Google::Apis::DriveactivityV2::ActionDetail, decorator: Google::Apis::DriveactivityV2::ActionDetail::Representation
355
+
356
+ property :target, as: 'target', class: Google::Apis::DriveactivityV2::Target, decorator: Google::Apis::DriveactivityV2::Target::Representation
357
+
358
+ property :time_range, as: 'timeRange', class: Google::Apis::DriveactivityV2::TimeRange, decorator: Google::Apis::DriveactivityV2::TimeRange::Representation
359
+
360
+ property :timestamp, as: 'timestamp'
361
+ end
362
+ end
363
+
364
+ class ActionDetail
365
+ # @private
366
+ class Representation < Google::Apis::Core::JsonRepresentation
367
+ property :comment, as: 'comment', class: Google::Apis::DriveactivityV2::Comment, decorator: Google::Apis::DriveactivityV2::Comment::Representation
368
+
369
+ property :create, as: 'create', class: Google::Apis::DriveactivityV2::Create, decorator: Google::Apis::DriveactivityV2::Create::Representation
370
+
371
+ property :delete, as: 'delete', class: Google::Apis::DriveactivityV2::Delete, decorator: Google::Apis::DriveactivityV2::Delete::Representation
372
+
373
+ property :dlp_change, as: 'dlpChange', class: Google::Apis::DriveactivityV2::DataLeakPreventionChange, decorator: Google::Apis::DriveactivityV2::DataLeakPreventionChange::Representation
374
+
375
+ property :edit, as: 'edit', class: Google::Apis::DriveactivityV2::Edit, decorator: Google::Apis::DriveactivityV2::Edit::Representation
376
+
377
+ property :move, as: 'move', class: Google::Apis::DriveactivityV2::Move, decorator: Google::Apis::DriveactivityV2::Move::Representation
378
+
379
+ property :permission_change, as: 'permissionChange', class: Google::Apis::DriveactivityV2::PermissionChange, decorator: Google::Apis::DriveactivityV2::PermissionChange::Representation
380
+
381
+ property :reference, as: 'reference', class: Google::Apis::DriveactivityV2::ApplicationReference, decorator: Google::Apis::DriveactivityV2::ApplicationReference::Representation
382
+
383
+ property :rename, as: 'rename', class: Google::Apis::DriveactivityV2::Rename, decorator: Google::Apis::DriveactivityV2::Rename::Representation
384
+
385
+ property :restore, as: 'restore', class: Google::Apis::DriveactivityV2::Restore, decorator: Google::Apis::DriveactivityV2::Restore::Representation
386
+
387
+ property :settings_change, as: 'settingsChange', class: Google::Apis::DriveactivityV2::SettingsChange, decorator: Google::Apis::DriveactivityV2::SettingsChange::Representation
388
+
389
+ end
390
+ end
391
+
392
+ class Actor
393
+ # @private
394
+ class Representation < Google::Apis::Core::JsonRepresentation
395
+ property :administrator, as: 'administrator', class: Google::Apis::DriveactivityV2::Administrator, decorator: Google::Apis::DriveactivityV2::Administrator::Representation
396
+
397
+ property :anonymous, as: 'anonymous', class: Google::Apis::DriveactivityV2::AnonymousUser, decorator: Google::Apis::DriveactivityV2::AnonymousUser::Representation
398
+
399
+ property :impersonation, as: 'impersonation', class: Google::Apis::DriveactivityV2::Impersonation, decorator: Google::Apis::DriveactivityV2::Impersonation::Representation
400
+
401
+ property :system, as: 'system', class: Google::Apis::DriveactivityV2::SystemEvent, decorator: Google::Apis::DriveactivityV2::SystemEvent::Representation
402
+
403
+ property :user, as: 'user', class: Google::Apis::DriveactivityV2::User, decorator: Google::Apis::DriveactivityV2::User::Representation
404
+
405
+ end
406
+ end
407
+
408
+ class Administrator
409
+ # @private
410
+ class Representation < Google::Apis::Core::JsonRepresentation
411
+ end
412
+ end
413
+
414
+ class AnonymousUser
415
+ # @private
416
+ class Representation < Google::Apis::Core::JsonRepresentation
417
+ end
418
+ end
419
+
420
+ class Anyone
421
+ # @private
422
+ class Representation < Google::Apis::Core::JsonRepresentation
423
+ end
424
+ end
425
+
426
+ class ApplicationReference
427
+ # @private
428
+ class Representation < Google::Apis::Core::JsonRepresentation
429
+ property :type, as: 'type'
430
+ end
431
+ end
432
+
433
+ class Assignment
434
+ # @private
435
+ class Representation < Google::Apis::Core::JsonRepresentation
436
+ property :assigned_user, as: 'assignedUser', class: Google::Apis::DriveactivityV2::User, decorator: Google::Apis::DriveactivityV2::User::Representation
437
+
438
+ property :subtype, as: 'subtype'
439
+ end
440
+ end
441
+
442
+ class Comment
443
+ # @private
444
+ class Representation < Google::Apis::Core::JsonRepresentation
445
+ property :assignment, as: 'assignment', class: Google::Apis::DriveactivityV2::Assignment, decorator: Google::Apis::DriveactivityV2::Assignment::Representation
446
+
447
+ collection :mentioned_users, as: 'mentionedUsers', class: Google::Apis::DriveactivityV2::User, decorator: Google::Apis::DriveactivityV2::User::Representation
448
+
449
+ property :post, as: 'post', class: Google::Apis::DriveactivityV2::Post, decorator: Google::Apis::DriveactivityV2::Post::Representation
450
+
451
+ property :suggestion, as: 'suggestion', class: Google::Apis::DriveactivityV2::Suggestion, decorator: Google::Apis::DriveactivityV2::Suggestion::Representation
452
+
453
+ end
454
+ end
455
+
456
+ class ConsolidationStrategy
457
+ # @private
458
+ class Representation < Google::Apis::Core::JsonRepresentation
459
+ property :legacy, as: 'legacy', class: Google::Apis::DriveactivityV2::Legacy, decorator: Google::Apis::DriveactivityV2::Legacy::Representation
460
+
461
+ property :none, as: 'none', class: Google::Apis::DriveactivityV2::NoConsolidation, decorator: Google::Apis::DriveactivityV2::NoConsolidation::Representation
462
+
463
+ end
464
+ end
465
+
466
+ class Copy
467
+ # @private
468
+ class Representation < Google::Apis::Core::JsonRepresentation
469
+ property :original_object, as: 'originalObject', class: Google::Apis::DriveactivityV2::TargetReference, decorator: Google::Apis::DriveactivityV2::TargetReference::Representation
470
+
471
+ end
472
+ end
473
+
474
+ class Create
475
+ # @private
476
+ class Representation < Google::Apis::Core::JsonRepresentation
477
+ property :copy, as: 'copy', class: Google::Apis::DriveactivityV2::Copy, decorator: Google::Apis::DriveactivityV2::Copy::Representation
478
+
479
+ property :new, as: 'new', class: Google::Apis::DriveactivityV2::New, decorator: Google::Apis::DriveactivityV2::New::Representation
480
+
481
+ property :upload, as: 'upload', class: Google::Apis::DriveactivityV2::Upload, decorator: Google::Apis::DriveactivityV2::Upload::Representation
482
+
483
+ end
484
+ end
485
+
486
+ class DataLeakPreventionChange
487
+ # @private
488
+ class Representation < Google::Apis::Core::JsonRepresentation
489
+ property :type, as: 'type'
490
+ end
491
+ end
492
+
493
+ class Delete
494
+ # @private
495
+ class Representation < Google::Apis::Core::JsonRepresentation
496
+ property :type, as: 'type'
497
+ end
498
+ end
499
+
500
+ class DeletedUser
501
+ # @private
502
+ class Representation < Google::Apis::Core::JsonRepresentation
503
+ end
504
+ end
505
+
506
+ class Domain
507
+ # @private
508
+ class Representation < Google::Apis::Core::JsonRepresentation
509
+ property :legacy_id, as: 'legacyId'
510
+ property :name, as: 'name'
511
+ end
512
+ end
513
+
514
+ class Drive
515
+ # @private
516
+ class Representation < Google::Apis::Core::JsonRepresentation
517
+ property :name, as: 'name'
518
+ property :root, as: 'root', class: Google::Apis::DriveactivityV2::DriveItem, decorator: Google::Apis::DriveactivityV2::DriveItem::Representation
519
+
520
+ property :title, as: 'title'
521
+ end
522
+ end
523
+
524
+ class DriveActivity
525
+ # @private
526
+ class Representation < Google::Apis::Core::JsonRepresentation
527
+ collection :actions, as: 'actions', class: Google::Apis::DriveactivityV2::Action, decorator: Google::Apis::DriveactivityV2::Action::Representation
528
+
529
+ collection :actors, as: 'actors', class: Google::Apis::DriveactivityV2::Actor, decorator: Google::Apis::DriveactivityV2::Actor::Representation
530
+
531
+ property :primary_action_detail, as: 'primaryActionDetail', class: Google::Apis::DriveactivityV2::ActionDetail, decorator: Google::Apis::DriveactivityV2::ActionDetail::Representation
532
+
533
+ collection :targets, as: 'targets', class: Google::Apis::DriveactivityV2::Target, decorator: Google::Apis::DriveactivityV2::Target::Representation
534
+
535
+ property :time_range, as: 'timeRange', class: Google::Apis::DriveactivityV2::TimeRange, decorator: Google::Apis::DriveactivityV2::TimeRange::Representation
536
+
537
+ property :timestamp, as: 'timestamp'
538
+ end
539
+ end
540
+
541
+ class DriveFile
542
+ # @private
543
+ class Representation < Google::Apis::Core::JsonRepresentation
544
+ end
545
+ end
546
+
547
+ class DriveFolder
548
+ # @private
549
+ class Representation < Google::Apis::Core::JsonRepresentation
550
+ property :type, as: 'type'
551
+ end
552
+ end
553
+
554
+ class DriveItem
555
+ # @private
556
+ class Representation < Google::Apis::Core::JsonRepresentation
557
+ property :drive_file, as: 'driveFile', class: Google::Apis::DriveactivityV2::DriveFile, decorator: Google::Apis::DriveactivityV2::DriveFile::Representation
558
+
559
+ property :drive_folder, as: 'driveFolder', class: Google::Apis::DriveactivityV2::DriveFolder, decorator: Google::Apis::DriveactivityV2::DriveFolder::Representation
560
+
561
+ property :file, as: 'file', class: Google::Apis::DriveactivityV2::File, decorator: Google::Apis::DriveactivityV2::File::Representation
562
+
563
+ property :folder, as: 'folder', class: Google::Apis::DriveactivityV2::Folder, decorator: Google::Apis::DriveactivityV2::Folder::Representation
564
+
565
+ property :mime_type, as: 'mimeType'
566
+ property :name, as: 'name'
567
+ property :owner, as: 'owner', class: Google::Apis::DriveactivityV2::Owner, decorator: Google::Apis::DriveactivityV2::Owner::Representation
568
+
569
+ property :title, as: 'title'
570
+ end
571
+ end
572
+
573
+ class DriveItemReference
574
+ # @private
575
+ class Representation < Google::Apis::Core::JsonRepresentation
576
+ property :drive_file, as: 'driveFile', class: Google::Apis::DriveactivityV2::DriveFile, decorator: Google::Apis::DriveactivityV2::DriveFile::Representation
577
+
578
+ property :drive_folder, as: 'driveFolder', class: Google::Apis::DriveactivityV2::DriveFolder, decorator: Google::Apis::DriveactivityV2::DriveFolder::Representation
579
+
580
+ property :file, as: 'file', class: Google::Apis::DriveactivityV2::File, decorator: Google::Apis::DriveactivityV2::File::Representation
581
+
582
+ property :folder, as: 'folder', class: Google::Apis::DriveactivityV2::Folder, decorator: Google::Apis::DriveactivityV2::Folder::Representation
583
+
584
+ property :name, as: 'name'
585
+ property :title, as: 'title'
586
+ end
587
+ end
588
+
589
+ class DriveReference
590
+ # @private
591
+ class Representation < Google::Apis::Core::JsonRepresentation
592
+ property :name, as: 'name'
593
+ property :title, as: 'title'
594
+ end
595
+ end
596
+
597
+ class Edit
598
+ # @private
599
+ class Representation < Google::Apis::Core::JsonRepresentation
600
+ end
601
+ end
602
+
603
+ class File
604
+ # @private
605
+ class Representation < Google::Apis::Core::JsonRepresentation
606
+ end
607
+ end
608
+
609
+ class FileComment
610
+ # @private
611
+ class Representation < Google::Apis::Core::JsonRepresentation
612
+ property :legacy_comment_id, as: 'legacyCommentId'
613
+ property :legacy_discussion_id, as: 'legacyDiscussionId'
614
+ property :link_to_discussion, as: 'linkToDiscussion'
615
+ property :parent, as: 'parent', class: Google::Apis::DriveactivityV2::DriveItem, decorator: Google::Apis::DriveactivityV2::DriveItem::Representation
616
+
617
+ end
618
+ end
619
+
620
+ class Folder
621
+ # @private
622
+ class Representation < Google::Apis::Core::JsonRepresentation
623
+ property :type, as: 'type'
624
+ end
625
+ end
626
+
627
+ class Group
628
+ # @private
629
+ class Representation < Google::Apis::Core::JsonRepresentation
630
+ property :email, as: 'email'
631
+ property :title, as: 'title'
632
+ end
633
+ end
634
+
635
+ class Impersonation
636
+ # @private
637
+ class Representation < Google::Apis::Core::JsonRepresentation
638
+ property :impersonated_user, as: 'impersonatedUser', class: Google::Apis::DriveactivityV2::User, decorator: Google::Apis::DriveactivityV2::User::Representation
639
+
640
+ end
641
+ end
642
+
643
+ class KnownUser
644
+ # @private
645
+ class Representation < Google::Apis::Core::JsonRepresentation
646
+ property :is_current_user, as: 'isCurrentUser'
647
+ property :person_name, as: 'personName'
648
+ end
649
+ end
650
+
651
+ class Legacy
652
+ # @private
653
+ class Representation < Google::Apis::Core::JsonRepresentation
654
+ end
655
+ end
656
+
657
+ class Move
658
+ # @private
659
+ class Representation < Google::Apis::Core::JsonRepresentation
660
+ collection :added_parents, as: 'addedParents', class: Google::Apis::DriveactivityV2::TargetReference, decorator: Google::Apis::DriveactivityV2::TargetReference::Representation
661
+
662
+ collection :removed_parents, as: 'removedParents', class: Google::Apis::DriveactivityV2::TargetReference, decorator: Google::Apis::DriveactivityV2::TargetReference::Representation
663
+
664
+ end
665
+ end
666
+
667
+ class New
668
+ # @private
669
+ class Representation < Google::Apis::Core::JsonRepresentation
670
+ end
671
+ end
672
+
673
+ class NoConsolidation
674
+ # @private
675
+ class Representation < Google::Apis::Core::JsonRepresentation
676
+ end
677
+ end
678
+
679
+ class Owner
680
+ # @private
681
+ class Representation < Google::Apis::Core::JsonRepresentation
682
+ property :domain, as: 'domain', class: Google::Apis::DriveactivityV2::Domain, decorator: Google::Apis::DriveactivityV2::Domain::Representation
683
+
684
+ property :drive, as: 'drive', class: Google::Apis::DriveactivityV2::DriveReference, decorator: Google::Apis::DriveactivityV2::DriveReference::Representation
685
+
686
+ property :team_drive, as: 'teamDrive', class: Google::Apis::DriveactivityV2::TeamDriveReference, decorator: Google::Apis::DriveactivityV2::TeamDriveReference::Representation
687
+
688
+ property :user, as: 'user', class: Google::Apis::DriveactivityV2::User, decorator: Google::Apis::DriveactivityV2::User::Representation
689
+
690
+ end
691
+ end
692
+
693
+ class Permission
694
+ # @private
695
+ class Representation < Google::Apis::Core::JsonRepresentation
696
+ property :allow_discovery, as: 'allowDiscovery'
697
+ property :anyone, as: 'anyone', class: Google::Apis::DriveactivityV2::Anyone, decorator: Google::Apis::DriveactivityV2::Anyone::Representation
698
+
699
+ property :domain, as: 'domain', class: Google::Apis::DriveactivityV2::Domain, decorator: Google::Apis::DriveactivityV2::Domain::Representation
700
+
701
+ property :group, as: 'group', class: Google::Apis::DriveactivityV2::Group, decorator: Google::Apis::DriveactivityV2::Group::Representation
702
+
703
+ property :role, as: 'role'
704
+ property :user, as: 'user', class: Google::Apis::DriveactivityV2::User, decorator: Google::Apis::DriveactivityV2::User::Representation
705
+
706
+ end
707
+ end
708
+
709
+ class PermissionChange
710
+ # @private
711
+ class Representation < Google::Apis::Core::JsonRepresentation
712
+ collection :added_permissions, as: 'addedPermissions', class: Google::Apis::DriveactivityV2::Permission, decorator: Google::Apis::DriveactivityV2::Permission::Representation
713
+
714
+ collection :removed_permissions, as: 'removedPermissions', class: Google::Apis::DriveactivityV2::Permission, decorator: Google::Apis::DriveactivityV2::Permission::Representation
715
+
716
+ end
717
+ end
718
+
719
+ class Post
720
+ # @private
721
+ class Representation < Google::Apis::Core::JsonRepresentation
722
+ property :subtype, as: 'subtype'
723
+ end
724
+ end
725
+
726
+ class QueryDriveActivityRequest
727
+ # @private
728
+ class Representation < Google::Apis::Core::JsonRepresentation
729
+ property :ancestor_name, as: 'ancestorName'
730
+ property :consolidation_strategy, as: 'consolidationStrategy', class: Google::Apis::DriveactivityV2::ConsolidationStrategy, decorator: Google::Apis::DriveactivityV2::ConsolidationStrategy::Representation
731
+
732
+ property :filter, as: 'filter'
733
+ property :item_name, as: 'itemName'
734
+ property :page_size, as: 'pageSize'
735
+ property :page_token, as: 'pageToken'
736
+ end
737
+ end
738
+
739
+ class QueryDriveActivityResponse
740
+ # @private
741
+ class Representation < Google::Apis::Core::JsonRepresentation
742
+ collection :activities, as: 'activities', class: Google::Apis::DriveactivityV2::DriveActivity, decorator: Google::Apis::DriveactivityV2::DriveActivity::Representation
743
+
744
+ property :next_page_token, as: 'nextPageToken'
745
+ end
746
+ end
747
+
748
+ class Rename
749
+ # @private
750
+ class Representation < Google::Apis::Core::JsonRepresentation
751
+ property :new_title, as: 'newTitle'
752
+ property :old_title, as: 'oldTitle'
753
+ end
754
+ end
755
+
756
+ class Restore
757
+ # @private
758
+ class Representation < Google::Apis::Core::JsonRepresentation
759
+ property :type, as: 'type'
760
+ end
761
+ end
762
+
763
+ class RestrictionChange
764
+ # @private
765
+ class Representation < Google::Apis::Core::JsonRepresentation
766
+ property :feature, as: 'feature'
767
+ property :new_restriction, as: 'newRestriction'
768
+ end
769
+ end
770
+
771
+ class SettingsChange
772
+ # @private
773
+ class Representation < Google::Apis::Core::JsonRepresentation
774
+ collection :restriction_changes, as: 'restrictionChanges', class: Google::Apis::DriveactivityV2::RestrictionChange, decorator: Google::Apis::DriveactivityV2::RestrictionChange::Representation
775
+
776
+ end
777
+ end
778
+
779
+ class Suggestion
780
+ # @private
781
+ class Representation < Google::Apis::Core::JsonRepresentation
782
+ property :subtype, as: 'subtype'
783
+ end
784
+ end
785
+
786
+ class SystemEvent
787
+ # @private
788
+ class Representation < Google::Apis::Core::JsonRepresentation
789
+ property :type, as: 'type'
790
+ end
791
+ end
792
+
793
+ class Target
794
+ # @private
795
+ class Representation < Google::Apis::Core::JsonRepresentation
796
+ property :drive, as: 'drive', class: Google::Apis::DriveactivityV2::Drive, decorator: Google::Apis::DriveactivityV2::Drive::Representation
797
+
798
+ property :drive_item, as: 'driveItem', class: Google::Apis::DriveactivityV2::DriveItem, decorator: Google::Apis::DriveactivityV2::DriveItem::Representation
799
+
800
+ property :file_comment, as: 'fileComment', class: Google::Apis::DriveactivityV2::FileComment, decorator: Google::Apis::DriveactivityV2::FileComment::Representation
801
+
802
+ property :team_drive, as: 'teamDrive', class: Google::Apis::DriveactivityV2::TeamDrive, decorator: Google::Apis::DriveactivityV2::TeamDrive::Representation
803
+
804
+ end
805
+ end
806
+
807
+ class TargetReference
808
+ # @private
809
+ class Representation < Google::Apis::Core::JsonRepresentation
810
+ property :drive, as: 'drive', class: Google::Apis::DriveactivityV2::DriveReference, decorator: Google::Apis::DriveactivityV2::DriveReference::Representation
811
+
812
+ property :drive_item, as: 'driveItem', class: Google::Apis::DriveactivityV2::DriveItemReference, decorator: Google::Apis::DriveactivityV2::DriveItemReference::Representation
813
+
814
+ property :team_drive, as: 'teamDrive', class: Google::Apis::DriveactivityV2::TeamDriveReference, decorator: Google::Apis::DriveactivityV2::TeamDriveReference::Representation
815
+
816
+ end
817
+ end
818
+
819
+ class TeamDrive
820
+ # @private
821
+ class Representation < Google::Apis::Core::JsonRepresentation
822
+ property :name, as: 'name'
823
+ property :root, as: 'root', class: Google::Apis::DriveactivityV2::DriveItem, decorator: Google::Apis::DriveactivityV2::DriveItem::Representation
824
+
825
+ property :title, as: 'title'
826
+ end
827
+ end
828
+
829
+ class TeamDriveReference
830
+ # @private
831
+ class Representation < Google::Apis::Core::JsonRepresentation
832
+ property :name, as: 'name'
833
+ property :title, as: 'title'
834
+ end
835
+ end
836
+
837
+ class TimeRange
838
+ # @private
839
+ class Representation < Google::Apis::Core::JsonRepresentation
840
+ property :end_time, as: 'endTime'
841
+ property :start_time, as: 'startTime'
842
+ end
843
+ end
844
+
845
+ class UnknownUser
846
+ # @private
847
+ class Representation < Google::Apis::Core::JsonRepresentation
848
+ end
849
+ end
850
+
851
+ class Upload
852
+ # @private
853
+ class Representation < Google::Apis::Core::JsonRepresentation
854
+ end
855
+ end
856
+
857
+ class User
858
+ # @private
859
+ class Representation < Google::Apis::Core::JsonRepresentation
860
+ property :deleted_user, as: 'deletedUser', class: Google::Apis::DriveactivityV2::DeletedUser, decorator: Google::Apis::DriveactivityV2::DeletedUser::Representation
861
+
862
+ property :known_user, as: 'knownUser', class: Google::Apis::DriveactivityV2::KnownUser, decorator: Google::Apis::DriveactivityV2::KnownUser::Representation
863
+
864
+ property :unknown_user, as: 'unknownUser', class: Google::Apis::DriveactivityV2::UnknownUser, decorator: Google::Apis::DriveactivityV2::UnknownUser::Representation
865
+
866
+ end
867
+ end
868
+ end
869
+ end
870
+ end