File: representations.rb

package info (click to toggle)
ruby-google-api-client 0.53.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 75,020 kB
  • sloc: ruby: 626,567; makefile: 4
file content (870 lines) | stat: -rw-r--r-- 32,851 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'

module Google
  module Apis
    module DriveactivityV2
      
      class Action
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class ActionDetail
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class Actor
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class Administrator
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class AnonymousUser
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class Anyone
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class ApplicationReference
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class Assignment
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class Comment
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class ConsolidationStrategy
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class Copy
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class Create
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class DataLeakPreventionChange
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class Delete
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class DeletedUser
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class Domain
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class Drive
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class DriveActivity
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class DriveFile
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class DriveFolder
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class DriveItem
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class DriveItemReference
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class DriveReference
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class Edit
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class File
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class FileComment
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class Folder
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class Group
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class Impersonation
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class KnownUser
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class Legacy
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class Move
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class New
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class NoConsolidation
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class Owner
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class Permission
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class PermissionChange
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class Post
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class QueryDriveActivityRequest
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class QueryDriveActivityResponse
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class Rename
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class Restore
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class RestrictionChange
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class SettingsChange
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class Suggestion
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class SystemEvent
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class Target
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class TargetReference
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class TeamDrive
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class TeamDriveReference
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class TimeRange
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class UnknownUser
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class Upload
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class User
        class Representation < Google::Apis::Core::JsonRepresentation; end
      
        include Google::Apis::Core::JsonObjectSupport
      end
      
      class Action
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :actor, as: 'actor', class: Google::Apis::DriveactivityV2::Actor, decorator: Google::Apis::DriveactivityV2::Actor::Representation
      
          property :detail, as: 'detail', class: Google::Apis::DriveactivityV2::ActionDetail, decorator: Google::Apis::DriveactivityV2::ActionDetail::Representation
      
          property :target, as: 'target', class: Google::Apis::DriveactivityV2::Target, decorator: Google::Apis::DriveactivityV2::Target::Representation
      
          property :time_range, as: 'timeRange', class: Google::Apis::DriveactivityV2::TimeRange, decorator: Google::Apis::DriveactivityV2::TimeRange::Representation
      
          property :timestamp, as: 'timestamp'
        end
      end
      
      class ActionDetail
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :comment, as: 'comment', class: Google::Apis::DriveactivityV2::Comment, decorator: Google::Apis::DriveactivityV2::Comment::Representation
      
          property :create, as: 'create', class: Google::Apis::DriveactivityV2::Create, decorator: Google::Apis::DriveactivityV2::Create::Representation
      
          property :delete, as: 'delete', class: Google::Apis::DriveactivityV2::Delete, decorator: Google::Apis::DriveactivityV2::Delete::Representation
      
          property :dlp_change, as: 'dlpChange', class: Google::Apis::DriveactivityV2::DataLeakPreventionChange, decorator: Google::Apis::DriveactivityV2::DataLeakPreventionChange::Representation
      
          property :edit, as: 'edit', class: Google::Apis::DriveactivityV2::Edit, decorator: Google::Apis::DriveactivityV2::Edit::Representation
      
          property :move, as: 'move', class: Google::Apis::DriveactivityV2::Move, decorator: Google::Apis::DriveactivityV2::Move::Representation
      
          property :permission_change, as: 'permissionChange', class: Google::Apis::DriveactivityV2::PermissionChange, decorator: Google::Apis::DriveactivityV2::PermissionChange::Representation
      
          property :reference, as: 'reference', class: Google::Apis::DriveactivityV2::ApplicationReference, decorator: Google::Apis::DriveactivityV2::ApplicationReference::Representation
      
          property :rename, as: 'rename', class: Google::Apis::DriveactivityV2::Rename, decorator: Google::Apis::DriveactivityV2::Rename::Representation
      
          property :restore, as: 'restore', class: Google::Apis::DriveactivityV2::Restore, decorator: Google::Apis::DriveactivityV2::Restore::Representation
      
          property :settings_change, as: 'settingsChange', class: Google::Apis::DriveactivityV2::SettingsChange, decorator: Google::Apis::DriveactivityV2::SettingsChange::Representation
      
        end
      end
      
      class Actor
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :administrator, as: 'administrator', class: Google::Apis::DriveactivityV2::Administrator, decorator: Google::Apis::DriveactivityV2::Administrator::Representation
      
          property :anonymous, as: 'anonymous', class: Google::Apis::DriveactivityV2::AnonymousUser, decorator: Google::Apis::DriveactivityV2::AnonymousUser::Representation
      
          property :impersonation, as: 'impersonation', class: Google::Apis::DriveactivityV2::Impersonation, decorator: Google::Apis::DriveactivityV2::Impersonation::Representation
      
          property :system, as: 'system', class: Google::Apis::DriveactivityV2::SystemEvent, decorator: Google::Apis::DriveactivityV2::SystemEvent::Representation
      
          property :user, as: 'user', class: Google::Apis::DriveactivityV2::User, decorator: Google::Apis::DriveactivityV2::User::Representation
      
        end
      end
      
      class Administrator
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
        end
      end
      
      class AnonymousUser
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
        end
      end
      
      class Anyone
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
        end
      end
      
      class ApplicationReference
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :type, as: 'type'
        end
      end
      
      class Assignment
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :assigned_user, as: 'assignedUser', class: Google::Apis::DriveactivityV2::User, decorator: Google::Apis::DriveactivityV2::User::Representation
      
          property :subtype, as: 'subtype'
        end
      end
      
      class Comment
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :assignment, as: 'assignment', class: Google::Apis::DriveactivityV2::Assignment, decorator: Google::Apis::DriveactivityV2::Assignment::Representation
      
          collection :mentioned_users, as: 'mentionedUsers', class: Google::Apis::DriveactivityV2::User, decorator: Google::Apis::DriveactivityV2::User::Representation
      
          property :post, as: 'post', class: Google::Apis::DriveactivityV2::Post, decorator: Google::Apis::DriveactivityV2::Post::Representation
      
          property :suggestion, as: 'suggestion', class: Google::Apis::DriveactivityV2::Suggestion, decorator: Google::Apis::DriveactivityV2::Suggestion::Representation
      
        end
      end
      
      class ConsolidationStrategy
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :legacy, as: 'legacy', class: Google::Apis::DriveactivityV2::Legacy, decorator: Google::Apis::DriveactivityV2::Legacy::Representation
      
          property :none, as: 'none', class: Google::Apis::DriveactivityV2::NoConsolidation, decorator: Google::Apis::DriveactivityV2::NoConsolidation::Representation
      
        end
      end
      
      class Copy
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :original_object, as: 'originalObject', class: Google::Apis::DriveactivityV2::TargetReference, decorator: Google::Apis::DriveactivityV2::TargetReference::Representation
      
        end
      end
      
      class Create
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :copy, as: 'copy', class: Google::Apis::DriveactivityV2::Copy, decorator: Google::Apis::DriveactivityV2::Copy::Representation
      
          property :new, as: 'new', class: Google::Apis::DriveactivityV2::New, decorator: Google::Apis::DriveactivityV2::New::Representation
      
          property :upload, as: 'upload', class: Google::Apis::DriveactivityV2::Upload, decorator: Google::Apis::DriveactivityV2::Upload::Representation
      
        end
      end
      
      class DataLeakPreventionChange
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :type, as: 'type'
        end
      end
      
      class Delete
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :type, as: 'type'
        end
      end
      
      class DeletedUser
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
        end
      end
      
      class Domain
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :legacy_id, as: 'legacyId'
          property :name, as: 'name'
        end
      end
      
      class Drive
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :name, as: 'name'
          property :root, as: 'root', class: Google::Apis::DriveactivityV2::DriveItem, decorator: Google::Apis::DriveactivityV2::DriveItem::Representation
      
          property :title, as: 'title'
        end
      end
      
      class DriveActivity
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          collection :actions, as: 'actions', class: Google::Apis::DriveactivityV2::Action, decorator: Google::Apis::DriveactivityV2::Action::Representation
      
          collection :actors, as: 'actors', class: Google::Apis::DriveactivityV2::Actor, decorator: Google::Apis::DriveactivityV2::Actor::Representation
      
          property :primary_action_detail, as: 'primaryActionDetail', class: Google::Apis::DriveactivityV2::ActionDetail, decorator: Google::Apis::DriveactivityV2::ActionDetail::Representation
      
          collection :targets, as: 'targets', class: Google::Apis::DriveactivityV2::Target, decorator: Google::Apis::DriveactivityV2::Target::Representation
      
          property :time_range, as: 'timeRange', class: Google::Apis::DriveactivityV2::TimeRange, decorator: Google::Apis::DriveactivityV2::TimeRange::Representation
      
          property :timestamp, as: 'timestamp'
        end
      end
      
      class DriveFile
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
        end
      end
      
      class DriveFolder
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :type, as: 'type'
        end
      end
      
      class DriveItem
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :drive_file, as: 'driveFile', class: Google::Apis::DriveactivityV2::DriveFile, decorator: Google::Apis::DriveactivityV2::DriveFile::Representation
      
          property :drive_folder, as: 'driveFolder', class: Google::Apis::DriveactivityV2::DriveFolder, decorator: Google::Apis::DriveactivityV2::DriveFolder::Representation
      
          property :file, as: 'file', class: Google::Apis::DriveactivityV2::File, decorator: Google::Apis::DriveactivityV2::File::Representation
      
          property :folder, as: 'folder', class: Google::Apis::DriveactivityV2::Folder, decorator: Google::Apis::DriveactivityV2::Folder::Representation
      
          property :mime_type, as: 'mimeType'
          property :name, as: 'name'
          property :owner, as: 'owner', class: Google::Apis::DriveactivityV2::Owner, decorator: Google::Apis::DriveactivityV2::Owner::Representation
      
          property :title, as: 'title'
        end
      end
      
      class DriveItemReference
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :drive_file, as: 'driveFile', class: Google::Apis::DriveactivityV2::DriveFile, decorator: Google::Apis::DriveactivityV2::DriveFile::Representation
      
          property :drive_folder, as: 'driveFolder', class: Google::Apis::DriveactivityV2::DriveFolder, decorator: Google::Apis::DriveactivityV2::DriveFolder::Representation
      
          property :file, as: 'file', class: Google::Apis::DriveactivityV2::File, decorator: Google::Apis::DriveactivityV2::File::Representation
      
          property :folder, as: 'folder', class: Google::Apis::DriveactivityV2::Folder, decorator: Google::Apis::DriveactivityV2::Folder::Representation
      
          property :name, as: 'name'
          property :title, as: 'title'
        end
      end
      
      class DriveReference
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :name, as: 'name'
          property :title, as: 'title'
        end
      end
      
      class Edit
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
        end
      end
      
      class File
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
        end
      end
      
      class FileComment
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :legacy_comment_id, as: 'legacyCommentId'
          property :legacy_discussion_id, as: 'legacyDiscussionId'
          property :link_to_discussion, as: 'linkToDiscussion'
          property :parent, as: 'parent', class: Google::Apis::DriveactivityV2::DriveItem, decorator: Google::Apis::DriveactivityV2::DriveItem::Representation
      
        end
      end
      
      class Folder
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :type, as: 'type'
        end
      end
      
      class Group
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :email, as: 'email'
          property :title, as: 'title'
        end
      end
      
      class Impersonation
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :impersonated_user, as: 'impersonatedUser', class: Google::Apis::DriveactivityV2::User, decorator: Google::Apis::DriveactivityV2::User::Representation
      
        end
      end
      
      class KnownUser
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :is_current_user, as: 'isCurrentUser'
          property :person_name, as: 'personName'
        end
      end
      
      class Legacy
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
        end
      end
      
      class Move
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          collection :added_parents, as: 'addedParents', class: Google::Apis::DriveactivityV2::TargetReference, decorator: Google::Apis::DriveactivityV2::TargetReference::Representation
      
          collection :removed_parents, as: 'removedParents', class: Google::Apis::DriveactivityV2::TargetReference, decorator: Google::Apis::DriveactivityV2::TargetReference::Representation
      
        end
      end
      
      class New
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
        end
      end
      
      class NoConsolidation
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
        end
      end
      
      class Owner
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :domain, as: 'domain', class: Google::Apis::DriveactivityV2::Domain, decorator: Google::Apis::DriveactivityV2::Domain::Representation
      
          property :drive, as: 'drive', class: Google::Apis::DriveactivityV2::DriveReference, decorator: Google::Apis::DriveactivityV2::DriveReference::Representation
      
          property :team_drive, as: 'teamDrive', class: Google::Apis::DriveactivityV2::TeamDriveReference, decorator: Google::Apis::DriveactivityV2::TeamDriveReference::Representation
      
          property :user, as: 'user', class: Google::Apis::DriveactivityV2::User, decorator: Google::Apis::DriveactivityV2::User::Representation
      
        end
      end
      
      class Permission
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :allow_discovery, as: 'allowDiscovery'
          property :anyone, as: 'anyone', class: Google::Apis::DriveactivityV2::Anyone, decorator: Google::Apis::DriveactivityV2::Anyone::Representation
      
          property :domain, as: 'domain', class: Google::Apis::DriveactivityV2::Domain, decorator: Google::Apis::DriveactivityV2::Domain::Representation
      
          property :group, as: 'group', class: Google::Apis::DriveactivityV2::Group, decorator: Google::Apis::DriveactivityV2::Group::Representation
      
          property :role, as: 'role'
          property :user, as: 'user', class: Google::Apis::DriveactivityV2::User, decorator: Google::Apis::DriveactivityV2::User::Representation
      
        end
      end
      
      class PermissionChange
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          collection :added_permissions, as: 'addedPermissions', class: Google::Apis::DriveactivityV2::Permission, decorator: Google::Apis::DriveactivityV2::Permission::Representation
      
          collection :removed_permissions, as: 'removedPermissions', class: Google::Apis::DriveactivityV2::Permission, decorator: Google::Apis::DriveactivityV2::Permission::Representation
      
        end
      end
      
      class Post
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :subtype, as: 'subtype'
        end
      end
      
      class QueryDriveActivityRequest
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :ancestor_name, as: 'ancestorName'
          property :consolidation_strategy, as: 'consolidationStrategy', class: Google::Apis::DriveactivityV2::ConsolidationStrategy, decorator: Google::Apis::DriveactivityV2::ConsolidationStrategy::Representation
      
          property :filter, as: 'filter'
          property :item_name, as: 'itemName'
          property :page_size, as: 'pageSize'
          property :page_token, as: 'pageToken'
        end
      end
      
      class QueryDriveActivityResponse
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          collection :activities, as: 'activities', class: Google::Apis::DriveactivityV2::DriveActivity, decorator: Google::Apis::DriveactivityV2::DriveActivity::Representation
      
          property :next_page_token, as: 'nextPageToken'
        end
      end
      
      class Rename
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :new_title, as: 'newTitle'
          property :old_title, as: 'oldTitle'
        end
      end
      
      class Restore
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :type, as: 'type'
        end
      end
      
      class RestrictionChange
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :feature, as: 'feature'
          property :new_restriction, as: 'newRestriction'
        end
      end
      
      class SettingsChange
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          collection :restriction_changes, as: 'restrictionChanges', class: Google::Apis::DriveactivityV2::RestrictionChange, decorator: Google::Apis::DriveactivityV2::RestrictionChange::Representation
      
        end
      end
      
      class Suggestion
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :subtype, as: 'subtype'
        end
      end
      
      class SystemEvent
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :type, as: 'type'
        end
      end
      
      class Target
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :drive, as: 'drive', class: Google::Apis::DriveactivityV2::Drive, decorator: Google::Apis::DriveactivityV2::Drive::Representation
      
          property :drive_item, as: 'driveItem', class: Google::Apis::DriveactivityV2::DriveItem, decorator: Google::Apis::DriveactivityV2::DriveItem::Representation
      
          property :file_comment, as: 'fileComment', class: Google::Apis::DriveactivityV2::FileComment, decorator: Google::Apis::DriveactivityV2::FileComment::Representation
      
          property :team_drive, as: 'teamDrive', class: Google::Apis::DriveactivityV2::TeamDrive, decorator: Google::Apis::DriveactivityV2::TeamDrive::Representation
      
        end
      end
      
      class TargetReference
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :drive, as: 'drive', class: Google::Apis::DriveactivityV2::DriveReference, decorator: Google::Apis::DriveactivityV2::DriveReference::Representation
      
          property :drive_item, as: 'driveItem', class: Google::Apis::DriveactivityV2::DriveItemReference, decorator: Google::Apis::DriveactivityV2::DriveItemReference::Representation
      
          property :team_drive, as: 'teamDrive', class: Google::Apis::DriveactivityV2::TeamDriveReference, decorator: Google::Apis::DriveactivityV2::TeamDriveReference::Representation
      
        end
      end
      
      class TeamDrive
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :name, as: 'name'
          property :root, as: 'root', class: Google::Apis::DriveactivityV2::DriveItem, decorator: Google::Apis::DriveactivityV2::DriveItem::Representation
      
          property :title, as: 'title'
        end
      end
      
      class TeamDriveReference
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :name, as: 'name'
          property :title, as: 'title'
        end
      end
      
      class TimeRange
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :end_time, as: 'endTime'
          property :start_time, as: 'startTime'
        end
      end
      
      class UnknownUser
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
        end
      end
      
      class Upload
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
        end
      end
      
      class User
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :deleted_user, as: 'deletedUser', class: Google::Apis::DriveactivityV2::DeletedUser, decorator: Google::Apis::DriveactivityV2::DeletedUser::Representation
      
          property :known_user, as: 'knownUser', class: Google::Apis::DriveactivityV2::KnownUser, decorator: Google::Apis::DriveactivityV2::KnownUser::Representation
      
          property :unknown_user, as: 'unknownUser', class: Google::Apis::DriveactivityV2::UnknownUser, decorator: Google::Apis::DriveactivityV2::UnknownUser::Representation
      
        end
      end
    end
  end
end