google-api-client 0.10.0 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/README.md +1 -1
  4. data/api_names.yaml +37747 -36512
  5. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1016 -114
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +426 -22
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +481 -95
  9. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  10. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +27 -10
  11. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
  12. data/generated/google/apis/admin_reports_v1.rb +2 -2
  13. data/generated/google/apis/adsense_v1_4.rb +1 -1
  14. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  15. data/generated/google/apis/analytics_v3.rb +1 -1
  16. data/generated/google/apis/analyticsreporting_v4.rb +4 -4
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +428 -428
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +60 -66
  21. data/generated/google/apis/androidenterprise_v1/service.rb +12 -11
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/androidpublisher_v2/classes.rb +7 -0
  24. data/generated/google/apis/androidpublisher_v2/representations.rb +1 -0
  25. data/generated/google/apis/androidpublisher_v2/service.rb +1 -1
  26. data/generated/google/apis/appsactivity_v1.rb +3 -3
  27. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  28. data/generated/google/apis/appstate_v1.rb +1 -1
  29. data/generated/google/apis/bigquery_v2.rb +1 -1
  30. data/generated/google/apis/bigquery_v2/classes.rb +34 -8
  31. data/generated/google/apis/bigquery_v2/representations.rb +15 -0
  32. data/generated/google/apis/calendar_v3.rb +1 -1
  33. data/generated/google/apis/calendar_v3/classes.rb +3 -5
  34. data/generated/google/apis/classroom_v1.rb +25 -22
  35. data/generated/google/apis/classroom_v1/classes.rb +910 -1001
  36. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  37. data/generated/google/apis/classroom_v1/service.rb +1064 -1272
  38. data/generated/google/apis/cloudbilling_v1.rb +3 -3
  39. data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
  40. data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
  41. data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
  42. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  43. data/generated/google/apis/cloudbuild_v1/classes.rb +238 -238
  44. data/generated/google/apis/cloudbuild_v1/representations.rb +48 -48
  45. data/generated/google/apis/cloudbuild_v1/service.rb +176 -176
  46. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  47. data/generated/google/apis/clouddebugger_v2/classes.rb +315 -315
  48. data/generated/google/apis/clouddebugger_v2/representations.rb +90 -90
  49. data/generated/google/apis/clouddebugger_v2/service.rb +152 -152
  50. data/generated/google/apis/cloudkms_v1.rb +35 -0
  51. data/generated/google/apis/cloudkms_v1/classes.rb +1039 -0
  52. data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
  53. data/generated/google/apis/cloudkms_v1/service.rb +933 -0
  54. data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
  55. data/generated/google/apis/cloudkms_v1beta1/classes.rb +645 -605
  56. data/generated/google/apis/cloudkms_v1beta1/representations.rb +136 -136
  57. data/generated/google/apis/cloudkms_v1beta1/service.rb +258 -264
  58. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  59. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  60. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +677 -456
  61. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +154 -89
  62. data/generated/google/apis/cloudresourcemanager_v1/service.rb +380 -279
  63. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  64. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +247 -114
  65. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +72 -40
  66. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +202 -208
  67. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  68. data/generated/google/apis/cloudtrace_v1/classes.rb +39 -39
  69. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  70. data/generated/google/apis/cloudtrace_v1/service.rb +18 -18
  71. data/generated/google/apis/compute_beta.rb +1 -1
  72. data/generated/google/apis/compute_beta/classes.rb +813 -82
  73. data/generated/google/apis/compute_beta/representations.rb +305 -0
  74. data/generated/google/apis/compute_beta/service.rb +971 -180
  75. data/generated/google/apis/compute_v1.rb +1 -1
  76. data/generated/google/apis/compute_v1/classes.rb +147 -21
  77. data/generated/google/apis/compute_v1/representations.rb +38 -0
  78. data/generated/google/apis/compute_v1/service.rb +347 -65
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/classes.rb +2 -1
  81. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3352 -3110
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +812 -730
  84. data/generated/google/apis/dataflow_v1b3/service.rb +264 -183
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +1200 -1164
  87. data/generated/google/apis/dataproc_v1/representations.rb +220 -204
  88. data/generated/google/apis/dataproc_v1/service.rb +299 -299
  89. data/generated/google/apis/datastore_v1.rb +4 -4
  90. data/generated/google/apis/datastore_v1/classes.rb +688 -688
  91. data/generated/google/apis/datastore_v1/representations.rb +167 -167
  92. data/generated/google/apis/datastore_v1/service.rb +68 -68
  93. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  94. data/generated/google/apis/deploymentmanager_v2/classes.rb +13 -3
  95. data/generated/google/apis/dns_v1.rb +1 -1
  96. data/generated/google/apis/dns_v2beta1.rb +1 -1
  97. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  98. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
  99. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  100. data/generated/google/apis/drive_v2.rb +1 -1
  101. data/generated/google/apis/drive_v2/classes.rb +487 -15
  102. data/generated/google/apis/drive_v2/representations.rb +120 -0
  103. data/generated/google/apis/drive_v2/service.rb +355 -38
  104. data/generated/google/apis/drive_v3.rb +1 -1
  105. data/generated/google/apis/drive_v3/classes.rb +416 -14
  106. data/generated/google/apis/drive_v3/representations.rb +99 -0
  107. data/generated/google/apis/drive_v3/service.rb +315 -28
  108. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  109. data/generated/google/apis/games_management_v1management.rb +1 -1
  110. data/generated/google/apis/games_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1.rb +7 -7
  112. data/generated/google/apis/genomics_v1/classes.rb +2301 -2301
  113. data/generated/google/apis/genomics_v1/representations.rb +239 -239
  114. data/generated/google/apis/genomics_v1/service.rb +599 -599
  115. data/generated/google/apis/gmail_v1.rb +2 -2
  116. data/generated/google/apis/gmail_v1/service.rb +18 -1
  117. data/generated/google/apis/groupssettings_v1.rb +1 -1
  118. data/generated/google/apis/iam_v1.rb +1 -1
  119. data/generated/google/apis/iam_v1/classes.rb +440 -440
  120. data/generated/google/apis/iam_v1/representations.rb +96 -96
  121. data/generated/google/apis/iam_v1/service.rb +150 -150
  122. data/generated/google/apis/kgsearch_v1/service.rb +13 -13
  123. data/generated/google/apis/language_v1beta1.rb +1 -1
  124. data/generated/google/apis/language_v1beta1/classes.rb +235 -235
  125. data/generated/google/apis/language_v1beta1/representations.rb +73 -73
  126. data/generated/google/apis/language_v1beta1/service.rb +49 -49
  127. data/generated/google/apis/licensing_v1.rb +1 -1
  128. data/generated/google/apis/logging_v2beta1.rb +1 -1
  129. data/generated/google/apis/logging_v2beta1/classes.rb +888 -879
  130. data/generated/google/apis/logging_v2beta1/representations.rb +129 -129
  131. data/generated/google/apis/logging_v2beta1/service.rb +315 -316
  132. data/generated/google/apis/manufacturers_v1/classes.rb +139 -139
  133. data/generated/google/apis/manufacturers_v1/representations.rb +30 -30
  134. data/generated/google/apis/manufacturers_v1/service.rb +32 -32
  135. data/generated/google/apis/monitoring_v3.rb +4 -4
  136. data/generated/google/apis/monitoring_v3/classes.rb +229 -229
  137. data/generated/google/apis/monitoring_v3/representations.rb +45 -45
  138. data/generated/google/apis/monitoring_v3/service.rb +141 -141
  139. data/generated/google/apis/partners_v2.rb +3 -3
  140. data/generated/google/apis/partners_v2/classes.rb +1837 -483
  141. data/generated/google/apis/partners_v2/representations.rb +614 -157
  142. data/generated/google/apis/partners_v2/service.rb +881 -150
  143. data/generated/google/apis/people_v1.rb +1 -1
  144. data/generated/google/apis/people_v1/classes.rb +517 -465
  145. data/generated/google/apis/people_v1/representations.rb +138 -107
  146. data/generated/google/apis/people_v1/service.rb +56 -49
  147. data/generated/google/apis/plus_domains_v1.rb +1 -1
  148. data/generated/google/apis/plus_v1.rb +1 -1
  149. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  150. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +529 -458
  151. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +98 -97
  152. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +494 -370
  153. data/generated/google/apis/pubsub_v1.rb +4 -4
  154. data/generated/google/apis/pubsub_v1/classes.rb +203 -203
  155. data/generated/google/apis/pubsub_v1/representations.rb +65 -65
  156. data/generated/google/apis/pubsub_v1/service.rb +226 -217
  157. data/generated/google/apis/reseller_v1.rb +1 -1
  158. data/generated/google/apis/reseller_v1/classes.rb +213 -61
  159. data/generated/google/apis/reseller_v1/representations.rb +27 -0
  160. data/generated/google/apis/reseller_v1/service.rb +240 -47
  161. data/generated/google/apis/script_v1.rb +14 -14
  162. data/generated/google/apis/script_v1/classes.rb +95 -95
  163. data/generated/google/apis/script_v1/representations.rb +25 -25
  164. data/generated/google/apis/sheets_v4.rb +1 -1
  165. data/generated/google/apis/sheets_v4/classes.rb +4346 -4300
  166. data/generated/google/apis/sheets_v4/representations.rb +853 -837
  167. data/generated/google/apis/sheets_v4/service.rb +32 -32
  168. data/generated/google/apis/slides_v1.rb +1 -1
  169. data/generated/google/apis/slides_v1/classes.rb +804 -748
  170. data/generated/google/apis/slides_v1/representations.rb +204 -187
  171. data/generated/google/apis/slides_v1/service.rb +16 -16
  172. data/generated/google/apis/speech_v1beta1.rb +1 -1
  173. data/generated/google/apis/speech_v1beta1/classes.rb +57 -57
  174. data/generated/google/apis/speech_v1beta1/representations.rb +19 -19
  175. data/generated/google/apis/speech_v1beta1/service.rb +66 -66
  176. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  177. data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -7
  178. data/generated/google/apis/sqladmin_v1beta4/representations.rb +16 -0
  179. data/generated/google/apis/sqladmin_v1beta4/service.rb +9 -2
  180. data/generated/google/apis/storage_v1.rb +1 -1
  181. data/generated/google/apis/storage_v1/service.rb +10 -7
  182. data/generated/google/apis/vision_v1.rb +1 -1
  183. data/generated/google/apis/vision_v1/classes.rb +1393 -865
  184. data/generated/google/apis/vision_v1/representations.rb +367 -102
  185. data/generated/google/apis/vision_v1/service.rb +4 -4
  186. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  187. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  188. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  189. data/generated/google/apis/youtubereporting_v1/classes.rb +93 -93
  190. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  191. data/generated/google/apis/youtubereporting_v1/service.rb +108 -108
  192. data/lib/google/apis/version.rb +1 -1
  193. metadata +34 -30
@@ -151,6 +151,12 @@ module Google
151
151
  class File
152
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
153
153
 
154
+ class Capabilities
155
+ class Representation < Google::Apis::Core::JsonRepresentation; end
156
+
157
+ include Google::Apis::Core::JsonObjectSupport
158
+ end
159
+
154
160
  class ImageMediaMetadata
155
161
  class Representation < Google::Apis::Core::JsonRepresentation; end
156
162
 
@@ -216,6 +222,12 @@ module Google
216
222
 
217
223
  class Permission
218
224
  class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ class TeamDrivePermissionDetail
227
+ class Representation < Google::Apis::Core::JsonRepresentation; end
228
+
229
+ include Google::Apis::Core::JsonObjectSupport
230
+ end
219
231
 
220
232
  include Google::Apis::Core::JsonObjectSupport
221
233
  end
@@ -262,6 +274,24 @@ module Google
262
274
  include Google::Apis::Core::JsonObjectSupport
263
275
  end
264
276
 
277
+ class TeamDrive
278
+ class Representation < Google::Apis::Core::JsonRepresentation; end
279
+
280
+ class Capabilities
281
+ class Representation < Google::Apis::Core::JsonRepresentation; end
282
+
283
+ include Google::Apis::Core::JsonObjectSupport
284
+ end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
289
+ class TeamDriveList
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
293
+ end
294
+
265
295
  class User
266
296
  class Representation < Google::Apis::Core::JsonRepresentation; end
267
297
 
@@ -432,6 +462,10 @@ module Google
432
462
  property :modification_date, as: 'modificationDate', type: DateTime
433
463
 
434
464
  property :self_link, as: 'selfLink'
465
+ property :team_drive, as: 'teamDrive', class: Google::Apis::DriveV2::TeamDrive, decorator: Google::Apis::DriveV2::TeamDrive::Representation
466
+
467
+ property :team_drive_id, as: 'teamDriveId'
468
+ property :type, as: 'type'
435
469
  end
436
470
  end
437
471
 
@@ -443,6 +477,7 @@ module Google
443
477
 
444
478
  property :kind, as: 'kind'
445
479
  property :largest_change_id, as: 'largestChangeId'
480
+ property :new_start_page_token, as: 'newStartPageToken'
446
481
  property :next_link, as: 'nextLink'
447
482
  property :next_page_token, as: 'nextPageToken'
448
483
  property :self_link, as: 'selfLink'
@@ -571,6 +606,8 @@ module Google
571
606
  property :app_data_contents, as: 'appDataContents'
572
607
  property :can_comment, as: 'canComment'
573
608
  property :can_read_revisions, as: 'canReadRevisions'
609
+ property :capabilities, as: 'capabilities', class: Google::Apis::DriveV2::File::Capabilities, decorator: Google::Apis::DriveV2::File::Capabilities::Representation
610
+
574
611
  property :copyable, as: 'copyable'
575
612
  property :created_date, as: 'createdDate', type: DateTime
576
613
 
@@ -586,6 +623,7 @@ module Google
586
623
  property :file_size, as: 'fileSize'
587
624
  property :folder_color_rgb, as: 'folderColorRgb'
588
625
  property :full_file_extension, as: 'fullFileExtension'
626
+ property :has_augmented_permissions, as: 'hasAugmentedPermissions'
589
627
  property :has_thumbnail, as: 'hasThumbnail'
590
628
  property :head_revision_id, as: 'headRevisionId'
591
629
  property :icon_link, as: 'iconLink'
@@ -632,11 +670,16 @@ module Google
632
670
  property :sharing_user, as: 'sharingUser', class: Google::Apis::DriveV2::User, decorator: Google::Apis::DriveV2::User::Representation
633
671
 
634
672
  collection :spaces, as: 'spaces'
673
+ property :team_drive_id, as: 'teamDriveId'
635
674
  property :thumbnail, as: 'thumbnail', class: Google::Apis::DriveV2::File::Thumbnail, decorator: Google::Apis::DriveV2::File::Thumbnail::Representation
636
675
 
637
676
  property :thumbnail_link, as: 'thumbnailLink'
638
677
  property :thumbnail_version, as: 'thumbnailVersion'
639
678
  property :title, as: 'title'
679
+ property :trashed_date, as: 'trashedDate', type: DateTime
680
+
681
+ property :trashing_user, as: 'trashingUser', class: Google::Apis::DriveV2::User, decorator: Google::Apis::DriveV2::User::Representation
682
+
640
683
  property :user_permission, as: 'userPermission', class: Google::Apis::DriveV2::Permission, decorator: Google::Apis::DriveV2::Permission::Representation
641
684
 
642
685
  property :version, as: 'version'
@@ -647,6 +690,28 @@ module Google
647
690
  property :writers_can_share, as: 'writersCanShare'
648
691
  end
649
692
 
693
+ class Capabilities
694
+ # @private
695
+ class Representation < Google::Apis::Core::JsonRepresentation
696
+ property :can_add_children, as: 'canAddChildren'
697
+ property :can_comment, as: 'canComment'
698
+ property :can_copy, as: 'canCopy'
699
+ property :can_delete, as: 'canDelete'
700
+ property :can_download, as: 'canDownload'
701
+ property :can_edit, as: 'canEdit'
702
+ property :can_list_children, as: 'canListChildren'
703
+ property :can_move_item_into_team_drive, as: 'canMoveItemIntoTeamDrive'
704
+ property :can_move_team_drive_item, as: 'canMoveTeamDriveItem'
705
+ property :can_read_revisions, as: 'canReadRevisions'
706
+ property :can_read_team_drive, as: 'canReadTeamDrive'
707
+ property :can_remove_children, as: 'canRemoveChildren'
708
+ property :can_rename, as: 'canRename'
709
+ property :can_share, as: 'canShare'
710
+ property :can_trash, as: 'canTrash'
711
+ property :can_untrash, as: 'canUntrash'
712
+ end
713
+ end
714
+
650
715
  class ImageMediaMetadata
651
716
  # @private
652
717
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -725,6 +790,7 @@ module Google
725
790
  # @private
726
791
  class Representation < Google::Apis::Core::JsonRepresentation
727
792
  property :etag, as: 'etag'
793
+ property :incomplete_search, as: 'incompleteSearch'
728
794
  collection :items, as: 'items', class: Google::Apis::DriveV2::File, decorator: Google::Apis::DriveV2::File::Representation
729
795
 
730
796
  property :kind, as: 'kind'
@@ -781,10 +847,23 @@ module Google
781
847
  property :photo_link, as: 'photoLink'
782
848
  property :role, as: 'role'
783
849
  property :self_link, as: 'selfLink'
850
+ collection :team_drive_permission_details, as: 'teamDrivePermissionDetails', class: Google::Apis::DriveV2::Permission::TeamDrivePermissionDetail, decorator: Google::Apis::DriveV2::Permission::TeamDrivePermissionDetail::Representation
851
+
784
852
  property :type, as: 'type'
785
853
  property :value, as: 'value'
786
854
  property :with_link, as: 'withLink'
787
855
  end
856
+
857
+ class TeamDrivePermissionDetail
858
+ # @private
859
+ class Representation < Google::Apis::Core::JsonRepresentation
860
+ collection :additional_roles, as: 'additionalRoles'
861
+ property :inherited, as: 'inherited'
862
+ property :inherited_from, as: 'inheritedFrom'
863
+ property :role, as: 'role'
864
+ property :team_drive_permission_type, as: 'teamDrivePermissionType'
865
+ end
866
+ end
788
867
  end
789
868
 
790
869
  class PermissionId
@@ -802,6 +881,7 @@ module Google
802
881
  collection :items, as: 'items', class: Google::Apis::DriveV2::Permission, decorator: Google::Apis::DriveV2::Permission::Representation
803
882
 
804
883
  property :kind, as: 'kind'
884
+ property :next_page_token, as: 'nextPageToken'
805
885
  property :self_link, as: 'selfLink'
806
886
  end
807
887
  end
@@ -875,6 +955,46 @@ module Google
875
955
  end
876
956
  end
877
957
 
958
+ class TeamDrive
959
+ # @private
960
+ class Representation < Google::Apis::Core::JsonRepresentation
961
+ property :capabilities, as: 'capabilities', class: Google::Apis::DriveV2::TeamDrive::Capabilities, decorator: Google::Apis::DriveV2::TeamDrive::Capabilities::Representation
962
+
963
+ property :id, as: 'id'
964
+ property :kind, as: 'kind'
965
+ property :name, as: 'name'
966
+ end
967
+
968
+ class Capabilities
969
+ # @private
970
+ class Representation < Google::Apis::Core::JsonRepresentation
971
+ property :can_add_children, as: 'canAddChildren'
972
+ property :can_comment, as: 'canComment'
973
+ property :can_copy, as: 'canCopy'
974
+ property :can_delete_team_drive, as: 'canDeleteTeamDrive'
975
+ property :can_download, as: 'canDownload'
976
+ property :can_edit, as: 'canEdit'
977
+ property :can_list_children, as: 'canListChildren'
978
+ property :can_manage_members, as: 'canManageMembers'
979
+ property :can_read_revisions, as: 'canReadRevisions'
980
+ property :can_remove_children, as: 'canRemoveChildren'
981
+ property :can_rename, as: 'canRename'
982
+ property :can_rename_team_drive, as: 'canRenameTeamDrive'
983
+ property :can_share, as: 'canShare'
984
+ end
985
+ end
986
+ end
987
+
988
+ class TeamDriveList
989
+ # @private
990
+ class Representation < Google::Apis::Core::JsonRepresentation
991
+ collection :items, as: 'items', class: Google::Apis::DriveV2::TeamDrive, decorator: Google::Apis::DriveV2::TeamDrive::Representation
992
+
993
+ property :kind, as: 'kind'
994
+ property :next_page_token, as: 'nextPageToken'
995
+ end
996
+ end
997
+
878
998
  class User
879
999
  # @private
880
1000
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -184,6 +184,10 @@ module Google
184
184
  # Gets a specific change.
185
185
  # @param [String] change_id
186
186
  # The ID of the change.
187
+ # @param [Boolean] supports_team_drives
188
+ # Whether the requesting application supports Team Drives.
189
+ # @param [String] team_drive_id
190
+ # The Team Drive from which the change will be returned.
187
191
  # @param [String] fields
188
192
  # Selector specifying which fields to include in a partial response.
189
193
  # @param [String] quota_user
@@ -205,11 +209,13 @@ module Google
205
209
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
206
210
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
207
211
  # @raise [Google::Apis::AuthorizationError] Authorization is required
208
- def get_change(change_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
212
+ def get_change(change_id, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
209
213
  command = make_simple_command(:get, 'changes/{changeId}', options)
210
214
  command.response_representation = Google::Apis::DriveV2::Change::Representation
211
215
  command.response_class = Google::Apis::DriveV2::Change
212
216
  command.params['changeId'] = change_id unless change_id.nil?
217
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
218
+ command.query['teamDriveId'] = team_drive_id unless team_drive_id.nil?
213
219
  command.query['fields'] = fields unless fields.nil?
214
220
  command.query['quotaUser'] = quota_user unless quota_user.nil?
215
221
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -217,6 +223,11 @@ module Google
217
223
  end
218
224
 
219
225
  # Gets the starting pageToken for listing future changes.
226
+ # @param [Boolean] supports_team_drives
227
+ # Whether the requesting application supports Team Drives.
228
+ # @param [String] team_drive_id
229
+ # The ID of the Team Drive for which the starting pageToken for listing future
230
+ # changes from that Team Drive will be returned.
220
231
  # @param [String] fields
221
232
  # Selector specifying which fields to include in a partial response.
222
233
  # @param [String] quota_user
@@ -238,23 +249,33 @@ module Google
238
249
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
239
250
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
240
251
  # @raise [Google::Apis::AuthorizationError] Authorization is required
241
- def get_change_start_page_token(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
252
+ def get_change_start_page_token(supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
242
253
  command = make_simple_command(:get, 'changes/startPageToken', options)
243
254
  command.response_representation = Google::Apis::DriveV2::StartPageToken::Representation
244
255
  command.response_class = Google::Apis::DriveV2::StartPageToken
256
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
257
+ command.query['teamDriveId'] = team_drive_id unless team_drive_id.nil?
245
258
  command.query['fields'] = fields unless fields.nil?
246
259
  command.query['quotaUser'] = quota_user unless quota_user.nil?
247
260
  command.query['userIp'] = user_ip unless user_ip.nil?
248
261
  execute_or_queue_command(command, &block)
249
262
  end
250
263
 
251
- # Lists the changes for a user.
264
+ # Lists the changes for a user or Team Drive.
265
+ # @param [Boolean] include_corpus_removals
266
+ # Whether changes should include the file resource if the file is still
267
+ # accessible by the user at the time of the request, even when a file was
268
+ # removed from the list of changes and there will be no further change entries
269
+ # for this file.
252
270
  # @param [Boolean] include_deleted
253
- # Whether to include deleted items.
271
+ # Whether to include changes indicating that items have been removed from the
272
+ # list of changes, for example by deletion or loss of access.
254
273
  # @param [Boolean] include_subscribed
255
274
  # Whether to include public files the user has opened and shared files. When set
256
275
  # to false, the list only includes owned files plus any shared or public files
257
276
  # the user has explicitly added to a folder they own.
277
+ # @param [Boolean] include_team_drive_items
278
+ # Whether Team Drive files or changes should be included in results.
258
279
  # @param [Fixnum] max_results
259
280
  # Maximum number of changes to return.
260
281
  # @param [String] page_token
@@ -266,6 +287,12 @@ module Google
266
287
  # appDataFolder' and 'photos'.
267
288
  # @param [String] start_change_id
268
289
  # Change ID to start listing changes from.
290
+ # @param [Boolean] supports_team_drives
291
+ # Whether the requesting application supports Team Drives.
292
+ # @param [String] team_drive_id
293
+ # The Team Drive from which changes will be returned. If specified the change
294
+ # IDs will be reflective of the Team Drive; use the combined Team Drive ID and
295
+ # change ID as an identifier.
269
296
  # @param [String] fields
270
297
  # Selector specifying which fields to include in a partial response.
271
298
  # @param [String] quota_user
@@ -287,16 +314,20 @@ module Google
287
314
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
288
315
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
289
316
  # @raise [Google::Apis::AuthorizationError] Authorization is required
290
- def list_changes(include_deleted: nil, include_subscribed: nil, max_results: nil, page_token: nil, spaces: nil, start_change_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
317
+ def list_changes(include_corpus_removals: nil, include_deleted: nil, include_subscribed: nil, include_team_drive_items: nil, max_results: nil, page_token: nil, spaces: nil, start_change_id: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
291
318
  command = make_simple_command(:get, 'changes', options)
292
319
  command.response_representation = Google::Apis::DriveV2::ChangeList::Representation
293
320
  command.response_class = Google::Apis::DriveV2::ChangeList
321
+ command.query['includeCorpusRemovals'] = include_corpus_removals unless include_corpus_removals.nil?
294
322
  command.query['includeDeleted'] = include_deleted unless include_deleted.nil?
295
323
  command.query['includeSubscribed'] = include_subscribed unless include_subscribed.nil?
324
+ command.query['includeTeamDriveItems'] = include_team_drive_items unless include_team_drive_items.nil?
296
325
  command.query['maxResults'] = max_results unless max_results.nil?
297
326
  command.query['pageToken'] = page_token unless page_token.nil?
298
327
  command.query['spaces'] = spaces unless spaces.nil?
299
328
  command.query['startChangeId'] = start_change_id unless start_change_id.nil?
329
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
330
+ command.query['teamDriveId'] = team_drive_id unless team_drive_id.nil?
300
331
  command.query['fields'] = fields unless fields.nil?
301
332
  command.query['quotaUser'] = quota_user unless quota_user.nil?
302
333
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -305,12 +336,20 @@ module Google
305
336
 
306
337
  # Subscribe to changes for a user.
307
338
  # @param [Google::Apis::DriveV2::Channel] channel_object
339
+ # @param [Boolean] include_corpus_removals
340
+ # Whether changes should include the file resource if the file is still
341
+ # accessible by the user at the time of the request, even when a file was
342
+ # removed from the list of changes and there will be no further change entries
343
+ # for this file.
308
344
  # @param [Boolean] include_deleted
309
- # Whether to include deleted items.
345
+ # Whether to include changes indicating that items have been removed from the
346
+ # list of changes, for example by deletion or loss of access.
310
347
  # @param [Boolean] include_subscribed
311
348
  # Whether to include public files the user has opened and shared files. When set
312
349
  # to false, the list only includes owned files plus any shared or public files
313
350
  # the user has explicitly added to a folder they own.
351
+ # @param [Boolean] include_team_drive_items
352
+ # Whether Team Drive files or changes should be included in results.
314
353
  # @param [Fixnum] max_results
315
354
  # Maximum number of changes to return.
316
355
  # @param [String] page_token
@@ -322,6 +361,12 @@ module Google
322
361
  # appDataFolder' and 'photos'.
323
362
  # @param [String] start_change_id
324
363
  # Change ID to start listing changes from.
364
+ # @param [Boolean] supports_team_drives
365
+ # Whether the requesting application supports Team Drives.
366
+ # @param [String] team_drive_id
367
+ # The Team Drive from which changes will be returned. If specified the change
368
+ # IDs will be reflective of the Team Drive; use the combined Team Drive ID and
369
+ # change ID as an identifier.
325
370
  # @param [String] fields
326
371
  # Selector specifying which fields to include in a partial response.
327
372
  # @param [String] quota_user
@@ -343,18 +388,22 @@ module Google
343
388
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
344
389
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
345
390
  # @raise [Google::Apis::AuthorizationError] Authorization is required
346
- def watch_change(channel_object = nil, include_deleted: nil, include_subscribed: nil, max_results: nil, page_token: nil, spaces: nil, start_change_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
391
+ def watch_change(channel_object = nil, include_corpus_removals: nil, include_deleted: nil, include_subscribed: nil, include_team_drive_items: nil, max_results: nil, page_token: nil, spaces: nil, start_change_id: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
347
392
  command = make_simple_command(:post, 'changes/watch', options)
348
393
  command.request_representation = Google::Apis::DriveV2::Channel::Representation
349
394
  command.request_object = channel_object
350
395
  command.response_representation = Google::Apis::DriveV2::Channel::Representation
351
396
  command.response_class = Google::Apis::DriveV2::Channel
397
+ command.query['includeCorpusRemovals'] = include_corpus_removals unless include_corpus_removals.nil?
352
398
  command.query['includeDeleted'] = include_deleted unless include_deleted.nil?
353
399
  command.query['includeSubscribed'] = include_subscribed unless include_subscribed.nil?
400
+ command.query['includeTeamDriveItems'] = include_team_drive_items unless include_team_drive_items.nil?
354
401
  command.query['maxResults'] = max_results unless max_results.nil?
355
402
  command.query['pageToken'] = page_token unless page_token.nil?
356
403
  command.query['spaces'] = spaces unless spaces.nil?
357
404
  command.query['startChangeId'] = start_change_id unless start_change_id.nil?
405
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
406
+ command.query['teamDriveId'] = team_drive_id unless team_drive_id.nil?
358
407
  command.query['fields'] = fields unless fields.nil?
359
408
  command.query['quotaUser'] = quota_user unless quota_user.nil?
360
409
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -472,6 +521,8 @@ module Google
472
521
  # @param [String] folder_id
473
522
  # The ID of the folder.
474
523
  # @param [Google::Apis::DriveV2::ChildReference] child_reference_object
524
+ # @param [Boolean] supports_team_drives
525
+ # Whether the requesting application supports Team Drives.
475
526
  # @param [String] fields
476
527
  # Selector specifying which fields to include in a partial response.
477
528
  # @param [String] quota_user
@@ -493,13 +544,14 @@ module Google
493
544
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
494
545
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
495
546
  # @raise [Google::Apis::AuthorizationError] Authorization is required
496
- def insert_child(folder_id, child_reference_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
547
+ def insert_child(folder_id, child_reference_object = nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
497
548
  command = make_simple_command(:post, 'files/{folderId}/children', options)
498
549
  command.request_representation = Google::Apis::DriveV2::ChildReference::Representation
499
550
  command.request_object = child_reference_object
500
551
  command.response_representation = Google::Apis::DriveV2::ChildReference::Representation
501
552
  command.response_class = Google::Apis::DriveV2::ChildReference
502
553
  command.params['folderId'] = folder_id unless folder_id.nil?
554
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
503
555
  command.query['fields'] = fields unless fields.nil?
504
556
  command.query['quotaUser'] = quota_user unless quota_user.nil?
505
557
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -821,6 +873,8 @@ module Google
821
873
  # @param [Boolean] pinned
822
874
  # Whether to pin the head revision of the new copy. A file can have a maximum of
823
875
  # 200 pinned revisions.
876
+ # @param [Boolean] supports_team_drives
877
+ # Whether the requesting application supports Team Drives.
824
878
  # @param [String] timed_text_language
825
879
  # The language of the timed text.
826
880
  # @param [String] timed_text_track_name
@@ -849,7 +903,7 @@ module Google
849
903
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
850
904
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
851
905
  # @raise [Google::Apis::AuthorizationError] Authorization is required
852
- def copy_file(file_id, file_object = nil, convert: nil, ocr: nil, ocr_language: nil, pinned: nil, timed_text_language: nil, timed_text_track_name: nil, visibility: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
906
+ def copy_file(file_id, file_object = nil, convert: nil, ocr: nil, ocr_language: nil, pinned: nil, supports_team_drives: nil, timed_text_language: nil, timed_text_track_name: nil, visibility: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
853
907
  command = make_simple_command(:post, 'files/{fileId}/copy', options)
854
908
  command.request_representation = Google::Apis::DriveV2::File::Representation
855
909
  command.request_object = file_object
@@ -860,6 +914,7 @@ module Google
860
914
  command.query['ocr'] = ocr unless ocr.nil?
861
915
  command.query['ocrLanguage'] = ocr_language unless ocr_language.nil?
862
916
  command.query['pinned'] = pinned unless pinned.nil?
917
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
863
918
  command.query['timedTextLanguage'] = timed_text_language unless timed_text_language.nil?
864
919
  command.query['timedTextTrackName'] = timed_text_track_name unless timed_text_track_name.nil?
865
920
  command.query['visibility'] = visibility unless visibility.nil?
@@ -870,9 +925,11 @@ module Google
870
925
  end
871
926
 
872
927
  # Permanently deletes a file by ID. Skips the trash. The currently authenticated
873
- # user must own the file.
928
+ # user must own the file or be an organizer on the parent for Team Drive files.
874
929
  # @param [String] file_id
875
930
  # The ID of the file to delete.
931
+ # @param [Boolean] supports_team_drives
932
+ # Whether the requesting application supports Team Drives.
876
933
  # @param [String] fields
877
934
  # Selector specifying which fields to include in a partial response.
878
935
  # @param [String] quota_user
@@ -894,9 +951,10 @@ module Google
894
951
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
895
952
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
896
953
  # @raise [Google::Apis::AuthorizationError] Authorization is required
897
- def delete_file(file_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
954
+ def delete_file(file_id, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
898
955
  command = make_simple_command(:delete, 'files/{fileId}', options)
899
956
  command.params['fileId'] = file_id unless file_id.nil?
957
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
900
958
  command.query['fields'] = fields unless fields.nil?
901
959
  command.query['quotaUser'] = quota_user unless quota_user.nil?
902
960
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1027,6 +1085,8 @@ module Google
1027
1085
  # @param [String] revision_id
1028
1086
  # Specifies the Revision ID that should be downloaded. Ignored unless alt=media
1029
1087
  # is specified.
1088
+ # @param [Boolean] supports_team_drives
1089
+ # Whether the requesting application supports Team Drives.
1030
1090
  # @param [Boolean] update_viewed_date
1031
1091
  # Deprecated: Use files.update with modifiedDateBehavior=noChange,
1032
1092
  # updateViewedDate=true and an empty request body.
@@ -1053,7 +1113,7 @@ module Google
1053
1113
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1054
1114
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1055
1115
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1056
- def get_file(file_id, acknowledge_abuse: nil, projection: nil, revision_id: nil, update_viewed_date: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
1116
+ def get_file(file_id, acknowledge_abuse: nil, projection: nil, revision_id: nil, supports_team_drives: nil, update_viewed_date: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
1057
1117
  if download_dest.nil?
1058
1118
  command = make_simple_command(:get, 'files/{fileId}', options)
1059
1119
  else
@@ -1066,6 +1126,7 @@ module Google
1066
1126
  command.query['acknowledgeAbuse'] = acknowledge_abuse unless acknowledge_abuse.nil?
1067
1127
  command.query['projection'] = projection unless projection.nil?
1068
1128
  command.query['revisionId'] = revision_id unless revision_id.nil?
1129
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1069
1130
  command.query['updateViewedDate'] = update_viewed_date unless update_viewed_date.nil?
1070
1131
  command.query['fields'] = fields unless fields.nil?
1071
1132
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1084,6 +1145,8 @@ module Google
1084
1145
  # @param [Boolean] pinned
1085
1146
  # Whether to pin the head revision of the uploaded file. A file can have a
1086
1147
  # maximum of 200 pinned revisions.
1148
+ # @param [Boolean] supports_team_drives
1149
+ # Whether the requesting application supports Team Drives.
1087
1150
  # @param [String] timed_text_language
1088
1151
  # The language of the timed text.
1089
1152
  # @param [String] timed_text_track_name
@@ -1118,7 +1181,7 @@ module Google
1118
1181
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1119
1182
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1120
1183
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1121
- def insert_file(file_object = nil, convert: nil, ocr: nil, ocr_language: nil, pinned: nil, timed_text_language: nil, timed_text_track_name: nil, use_content_as_indexable_text: nil, visibility: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
1184
+ def insert_file(file_object = nil, convert: nil, ocr: nil, ocr_language: nil, pinned: nil, supports_team_drives: nil, timed_text_language: nil, timed_text_track_name: nil, use_content_as_indexable_text: nil, visibility: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
1122
1185
  if upload_source.nil?
1123
1186
  command = make_simple_command(:post, 'files', options)
1124
1187
  else
@@ -1134,6 +1197,7 @@ module Google
1134
1197
  command.query['ocr'] = ocr unless ocr.nil?
1135
1198
  command.query['ocrLanguage'] = ocr_language unless ocr_language.nil?
1136
1199
  command.query['pinned'] = pinned unless pinned.nil?
1200
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1137
1201
  command.query['timedTextLanguage'] = timed_text_language unless timed_text_language.nil?
1138
1202
  command.query['timedTextTrackName'] = timed_text_track_name unless timed_text_track_name.nil?
1139
1203
  command.query['useContentAsIndexableText'] = use_content_as_indexable_text unless use_content_as_indexable_text.nil?
@@ -1145,8 +1209,17 @@ module Google
1145
1209
  end
1146
1210
 
1147
1211
  # Lists the user's files.
1212
+ # @param [String] corpora
1213
+ # Comma-separated list of bodies of items (files/documents) to which the query
1214
+ # applies. Supported bodies are 'default', 'domain', 'teamDrive' and '
1215
+ # allTeamDrives'. 'allTeamDrives' must be combined with 'default'; all other
1216
+ # values must be used in isolation. Prefer 'default' or 'teamDrive' to '
1217
+ # allTeamDrives' for efficiency.
1148
1218
  # @param [String] corpus
1149
- # The body of items (files/documents) to which the query applies.
1219
+ # The body of items (files/documents) to which the query applies. Deprecated:
1220
+ # use 'corpora' instead.
1221
+ # @param [Boolean] include_team_drive_items
1222
+ # Whether Team Drive items should be included in results.
1150
1223
  # @param [Fixnum] max_results
1151
1224
  # Maximum number of files to return.
1152
1225
  # @param [String] order_by
@@ -1166,6 +1239,10 @@ module Google
1166
1239
  # @param [String] spaces
1167
1240
  # A comma-separated list of spaces to query. Supported values are 'drive', '
1168
1241
  # appDataFolder' and 'photos'.
1242
+ # @param [Boolean] supports_team_drives
1243
+ # Whether the requesting application supports Team Drives.
1244
+ # @param [String] team_drive_id
1245
+ # ID of Team Drive to search.
1169
1246
  # @param [String] fields
1170
1247
  # Selector specifying which fields to include in a partial response.
1171
1248
  # @param [String] quota_user
@@ -1187,17 +1264,21 @@ module Google
1187
1264
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1188
1265
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1189
1266
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1190
- def list_files(corpus: nil, max_results: nil, order_by: nil, page_token: nil, projection: nil, q: nil, spaces: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1267
+ def list_files(corpora: nil, corpus: nil, include_team_drive_items: nil, max_results: nil, order_by: nil, page_token: nil, projection: nil, q: nil, spaces: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1191
1268
  command = make_simple_command(:get, 'files', options)
1192
1269
  command.response_representation = Google::Apis::DriveV2::FileList::Representation
1193
1270
  command.response_class = Google::Apis::DriveV2::FileList
1271
+ command.query['corpora'] = corpora unless corpora.nil?
1194
1272
  command.query['corpus'] = corpus unless corpus.nil?
1273
+ command.query['includeTeamDriveItems'] = include_team_drive_items unless include_team_drive_items.nil?
1195
1274
  command.query['maxResults'] = max_results unless max_results.nil?
1196
1275
  command.query['orderBy'] = order_by unless order_by.nil?
1197
1276
  command.query['pageToken'] = page_token unless page_token.nil?
1198
1277
  command.query['projection'] = projection unless projection.nil?
1199
1278
  command.query['q'] = q unless q.nil?
1200
1279
  command.query['spaces'] = spaces unless spaces.nil?
1280
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1281
+ command.query['teamDriveId'] = team_drive_id unless team_drive_id.nil?
1201
1282
  command.query['fields'] = fields unless fields.nil?
1202
1283
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1203
1284
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1233,6 +1314,8 @@ module Google
1233
1314
  # Comma-separated list of parent IDs to remove.
1234
1315
  # @param [Boolean] set_modified_date
1235
1316
  # Whether to set the modified date with the supplied modified date.
1317
+ # @param [Boolean] supports_team_drives
1318
+ # Whether the requesting application supports Team Drives.
1236
1319
  # @param [String] timed_text_language
1237
1320
  # The language of the timed text.
1238
1321
  # @param [String] timed_text_track_name
@@ -1262,7 +1345,7 @@ module Google
1262
1345
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1263
1346
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1264
1347
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1265
- def patch_file(file_id, file_object = nil, add_parents: nil, convert: nil, modified_date_behavior: nil, new_revision: nil, ocr: nil, ocr_language: nil, pinned: nil, remove_parents: nil, set_modified_date: nil, timed_text_language: nil, timed_text_track_name: nil, update_viewed_date: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1348
+ def patch_file(file_id, file_object = nil, add_parents: nil, convert: nil, modified_date_behavior: nil, new_revision: nil, ocr: nil, ocr_language: nil, pinned: nil, remove_parents: nil, set_modified_date: nil, supports_team_drives: nil, timed_text_language: nil, timed_text_track_name: nil, update_viewed_date: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1266
1349
  command = make_simple_command(:patch, 'files/{fileId}', options)
1267
1350
  command.request_representation = Google::Apis::DriveV2::File::Representation
1268
1351
  command.request_object = file_object
@@ -1278,6 +1361,7 @@ module Google
1278
1361
  command.query['pinned'] = pinned unless pinned.nil?
1279
1362
  command.query['removeParents'] = remove_parents unless remove_parents.nil?
1280
1363
  command.query['setModifiedDate'] = set_modified_date unless set_modified_date.nil?
1364
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1281
1365
  command.query['timedTextLanguage'] = timed_text_language unless timed_text_language.nil?
1282
1366
  command.query['timedTextTrackName'] = timed_text_track_name unless timed_text_track_name.nil?
1283
1367
  command.query['updateViewedDate'] = update_viewed_date unless update_viewed_date.nil?
@@ -1291,6 +1375,8 @@ module Google
1291
1375
  # Set the file's updated time to the current server time.
1292
1376
  # @param [String] file_id
1293
1377
  # The ID of the file to update.
1378
+ # @param [Boolean] supports_team_drives
1379
+ # Whether the requesting application supports Team Drives.
1294
1380
  # @param [String] fields
1295
1381
  # Selector specifying which fields to include in a partial response.
1296
1382
  # @param [String] quota_user
@@ -1312,20 +1398,24 @@ module Google
1312
1398
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1313
1399
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1314
1400
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1315
- def touch_file(file_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1401
+ def touch_file(file_id, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1316
1402
  command = make_simple_command(:post, 'files/{fileId}/touch', options)
1317
1403
  command.response_representation = Google::Apis::DriveV2::File::Representation
1318
1404
  command.response_class = Google::Apis::DriveV2::File
1319
1405
  command.params['fileId'] = file_id unless file_id.nil?
1406
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1320
1407
  command.query['fields'] = fields unless fields.nil?
1321
1408
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1322
1409
  command.query['userIp'] = user_ip unless user_ip.nil?
1323
1410
  execute_or_queue_command(command, &block)
1324
1411
  end
1325
1412
 
1326
- # Moves a file to the trash. The currently authenticated user must own the file.
1413
+ # Moves a file to the trash. The currently authenticated user must own the file
1414
+ # or be an organizer on the parent for Team Drive files.
1327
1415
  # @param [String] file_id
1328
1416
  # The ID of the file to trash.
1417
+ # @param [Boolean] supports_team_drives
1418
+ # Whether the requesting application supports Team Drives.
1329
1419
  # @param [String] fields
1330
1420
  # Selector specifying which fields to include in a partial response.
1331
1421
  # @param [String] quota_user
@@ -1347,11 +1437,12 @@ module Google
1347
1437
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1348
1438
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1349
1439
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1350
- def trash_file(file_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1440
+ def trash_file(file_id, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1351
1441
  command = make_simple_command(:post, 'files/{fileId}/trash', options)
1352
1442
  command.response_representation = Google::Apis::DriveV2::File::Representation
1353
1443
  command.response_class = Google::Apis::DriveV2::File
1354
1444
  command.params['fileId'] = file_id unless file_id.nil?
1445
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1355
1446
  command.query['fields'] = fields unless fields.nil?
1356
1447
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1357
1448
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1361,6 +1452,8 @@ module Google
1361
1452
  # Restores a file from the trash.
1362
1453
  # @param [String] file_id
1363
1454
  # The ID of the file to untrash.
1455
+ # @param [Boolean] supports_team_drives
1456
+ # Whether the requesting application supports Team Drives.
1364
1457
  # @param [String] fields
1365
1458
  # Selector specifying which fields to include in a partial response.
1366
1459
  # @param [String] quota_user
@@ -1382,11 +1475,12 @@ module Google
1382
1475
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1383
1476
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1384
1477
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1385
- def untrash_file(file_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1478
+ def untrash_file(file_id, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1386
1479
  command = make_simple_command(:post, 'files/{fileId}/untrash', options)
1387
1480
  command.response_representation = Google::Apis::DriveV2::File::Representation
1388
1481
  command.response_class = Google::Apis::DriveV2::File
1389
1482
  command.params['fileId'] = file_id unless file_id.nil?
1483
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1390
1484
  command.query['fields'] = fields unless fields.nil?
1391
1485
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1392
1486
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1422,6 +1516,8 @@ module Google
1422
1516
  # Comma-separated list of parent IDs to remove.
1423
1517
  # @param [Boolean] set_modified_date
1424
1518
  # Whether to set the modified date with the supplied modified date.
1519
+ # @param [Boolean] supports_team_drives
1520
+ # Whether the requesting application supports Team Drives.
1425
1521
  # @param [String] timed_text_language
1426
1522
  # The language of the timed text.
1427
1523
  # @param [String] timed_text_track_name
@@ -1455,7 +1551,7 @@ module Google
1455
1551
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1456
1552
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1457
1553
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1458
- def update_file(file_id, file_object = nil, add_parents: nil, convert: nil, modified_date_behavior: nil, new_revision: nil, ocr: nil, ocr_language: nil, pinned: nil, remove_parents: nil, set_modified_date: nil, timed_text_language: nil, timed_text_track_name: nil, update_viewed_date: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
1554
+ def update_file(file_id, file_object = nil, add_parents: nil, convert: nil, modified_date_behavior: nil, new_revision: nil, ocr: nil, ocr_language: nil, pinned: nil, remove_parents: nil, set_modified_date: nil, supports_team_drives: nil, timed_text_language: nil, timed_text_track_name: nil, update_viewed_date: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
1459
1555
  if upload_source.nil?
1460
1556
  command = make_simple_command(:put, 'files/{fileId}', options)
1461
1557
  else
@@ -1477,6 +1573,7 @@ module Google
1477
1573
  command.query['pinned'] = pinned unless pinned.nil?
1478
1574
  command.query['removeParents'] = remove_parents unless remove_parents.nil?
1479
1575
  command.query['setModifiedDate'] = set_modified_date unless set_modified_date.nil?
1576
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1480
1577
  command.query['timedTextLanguage'] = timed_text_language unless timed_text_language.nil?
1481
1578
  command.query['timedTextTrackName'] = timed_text_track_name unless timed_text_track_name.nil?
1482
1579
  command.query['updateViewedDate'] = update_viewed_date unless update_viewed_date.nil?
@@ -1499,6 +1596,8 @@ module Google
1499
1596
  # @param [String] revision_id
1500
1597
  # Specifies the Revision ID that should be downloaded. Ignored unless alt=media
1501
1598
  # is specified.
1599
+ # @param [Boolean] supports_team_drives
1600
+ # Whether the requesting application supports Team Drives.
1502
1601
  # @param [Boolean] update_viewed_date
1503
1602
  # Deprecated: Use files.update with modifiedDateBehavior=noChange,
1504
1603
  # updateViewedDate=true and an empty request body.
@@ -1525,7 +1624,7 @@ module Google
1525
1624
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1526
1625
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1527
1626
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1528
- def watch_file(file_id, channel_object = nil, acknowledge_abuse: nil, projection: nil, revision_id: nil, update_viewed_date: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
1627
+ def watch_file(file_id, channel_object = nil, acknowledge_abuse: nil, projection: nil, revision_id: nil, supports_team_drives: nil, update_viewed_date: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
1529
1628
  if download_dest.nil?
1530
1629
  command = make_simple_command(:post, 'files/{fileId}/watch', options)
1531
1630
  else
@@ -1540,6 +1639,7 @@ module Google
1540
1639
  command.query['acknowledgeAbuse'] = acknowledge_abuse unless acknowledge_abuse.nil?
1541
1640
  command.query['projection'] = projection unless projection.nil?
1542
1641
  command.query['revisionId'] = revision_id unless revision_id.nil?
1642
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1543
1643
  command.query['updateViewedDate'] = update_viewed_date unless update_viewed_date.nil?
1544
1644
  command.query['fields'] = fields unless fields.nil?
1545
1645
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1625,6 +1725,8 @@ module Google
1625
1725
  # @param [String] file_id
1626
1726
  # The ID of the file.
1627
1727
  # @param [Google::Apis::DriveV2::ParentReference] parent_reference_object
1728
+ # @param [Boolean] supports_team_drives
1729
+ # Whether the requesting application supports Team Drives.
1628
1730
  # @param [String] fields
1629
1731
  # Selector specifying which fields to include in a partial response.
1630
1732
  # @param [String] quota_user
@@ -1646,13 +1748,14 @@ module Google
1646
1748
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1647
1749
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1648
1750
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1649
- def insert_parent(file_id, parent_reference_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1751
+ def insert_parent(file_id, parent_reference_object = nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1650
1752
  command = make_simple_command(:post, 'files/{fileId}/parents', options)
1651
1753
  command.request_representation = Google::Apis::DriveV2::ParentReference::Representation
1652
1754
  command.request_object = parent_reference_object
1653
1755
  command.response_representation = Google::Apis::DriveV2::ParentReference::Representation
1654
1756
  command.response_class = Google::Apis::DriveV2::ParentReference
1655
1757
  command.params['fileId'] = file_id unless file_id.nil?
1758
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1656
1759
  command.query['fields'] = fields unless fields.nil?
1657
1760
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1658
1761
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1694,11 +1797,13 @@ module Google
1694
1797
  execute_or_queue_command(command, &block)
1695
1798
  end
1696
1799
 
1697
- # Deletes a permission from a file.
1800
+ # Deletes a permission from a file or Team Drive.
1698
1801
  # @param [String] file_id
1699
- # The ID for the file.
1802
+ # The ID for the file or Team Drive.
1700
1803
  # @param [String] permission_id
1701
1804
  # The ID for the permission.
1805
+ # @param [Boolean] supports_team_drives
1806
+ # Whether the requesting application supports Team Drives.
1702
1807
  # @param [String] fields
1703
1808
  # Selector specifying which fields to include in a partial response.
1704
1809
  # @param [String] quota_user
@@ -1720,10 +1825,11 @@ module Google
1720
1825
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1721
1826
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1722
1827
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1723
- def delete_permission(file_id, permission_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1828
+ def delete_permission(file_id, permission_id, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1724
1829
  command = make_simple_command(:delete, 'files/{fileId}/permissions/{permissionId}', options)
1725
1830
  command.params['fileId'] = file_id unless file_id.nil?
1726
1831
  command.params['permissionId'] = permission_id unless permission_id.nil?
1832
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1727
1833
  command.query['fields'] = fields unless fields.nil?
1728
1834
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1729
1835
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1732,9 +1838,11 @@ module Google
1732
1838
 
1733
1839
  # Gets a permission by ID.
1734
1840
  # @param [String] file_id
1735
- # The ID for the file.
1841
+ # The ID for the file or Team Drive.
1736
1842
  # @param [String] permission_id
1737
1843
  # The ID for the permission.
1844
+ # @param [Boolean] supports_team_drives
1845
+ # Whether the requesting application supports Team Drives.
1738
1846
  # @param [String] fields
1739
1847
  # Selector specifying which fields to include in a partial response.
1740
1848
  # @param [String] quota_user
@@ -1756,12 +1864,13 @@ module Google
1756
1864
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1757
1865
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1758
1866
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1759
- def get_permission(file_id, permission_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1867
+ def get_permission(file_id, permission_id, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1760
1868
  command = make_simple_command(:get, 'files/{fileId}/permissions/{permissionId}', options)
1761
1869
  command.response_representation = Google::Apis::DriveV2::Permission::Representation
1762
1870
  command.response_class = Google::Apis::DriveV2::Permission
1763
1871
  command.params['fileId'] = file_id unless file_id.nil?
1764
1872
  command.params['permissionId'] = permission_id unless permission_id.nil?
1873
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1765
1874
  command.query['fields'] = fields unless fields.nil?
1766
1875
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1767
1876
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1803,15 +1912,17 @@ module Google
1803
1912
  execute_or_queue_command(command, &block)
1804
1913
  end
1805
1914
 
1806
- # Inserts a permission for a file.
1915
+ # Inserts a permission for a file or Team Drive.
1807
1916
  # @param [String] file_id
1808
- # The ID for the file.
1917
+ # The ID for the file or Team Drive.
1809
1918
  # @param [Google::Apis::DriveV2::Permission] permission_object
1810
1919
  # @param [String] email_message
1811
1920
  # A custom message to include in notification emails.
1812
1921
  # @param [Boolean] send_notification_emails
1813
1922
  # Whether to send notification emails when sharing to users or groups. This
1814
1923
  # parameter is ignored and an email is sent if the role is owner.
1924
+ # @param [Boolean] supports_team_drives
1925
+ # Whether the requesting application supports Team Drives.
1815
1926
  # @param [String] fields
1816
1927
  # Selector specifying which fields to include in a partial response.
1817
1928
  # @param [String] quota_user
@@ -1833,7 +1944,7 @@ module Google
1833
1944
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1834
1945
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1835
1946
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1836
- def insert_permission(file_id, permission_object = nil, email_message: nil, send_notification_emails: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1947
+ def insert_permission(file_id, permission_object = nil, email_message: nil, send_notification_emails: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1837
1948
  command = make_simple_command(:post, 'files/{fileId}/permissions', options)
1838
1949
  command.request_representation = Google::Apis::DriveV2::Permission::Representation
1839
1950
  command.request_object = permission_object
@@ -1842,15 +1953,25 @@ module Google
1842
1953
  command.params['fileId'] = file_id unless file_id.nil?
1843
1954
  command.query['emailMessage'] = email_message unless email_message.nil?
1844
1955
  command.query['sendNotificationEmails'] = send_notification_emails unless send_notification_emails.nil?
1956
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1845
1957
  command.query['fields'] = fields unless fields.nil?
1846
1958
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1847
1959
  command.query['userIp'] = user_ip unless user_ip.nil?
1848
1960
  execute_or_queue_command(command, &block)
1849
1961
  end
1850
1962
 
1851
- # Lists a file's permissions.
1963
+ # Lists a file's or Team Drive's permissions.
1852
1964
  # @param [String] file_id
1853
- # The ID for the file.
1965
+ # The ID for the file or Team Drive.
1966
+ # @param [Fixnum] max_results
1967
+ # The maximum number of permissions to return per page. When not set for files
1968
+ # in a Team Drive, at most 100 results will be returned. When not set for files
1969
+ # that are not in a Team Drive, the entire list will be returned.
1970
+ # @param [String] page_token
1971
+ # The token for continuing a previous list request on the next page. This should
1972
+ # be set to the value of 'nextPageToken' from the previous response.
1973
+ # @param [Boolean] supports_team_drives
1974
+ # Whether the requesting application supports Team Drives.
1854
1975
  # @param [String] fields
1855
1976
  # Selector specifying which fields to include in a partial response.
1856
1977
  # @param [String] quota_user
@@ -1872,11 +1993,14 @@ module Google
1872
1993
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1873
1994
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1874
1995
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1875
- def list_permissions(file_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1996
+ def list_permissions(file_id, max_results: nil, page_token: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1876
1997
  command = make_simple_command(:get, 'files/{fileId}/permissions', options)
1877
1998
  command.response_representation = Google::Apis::DriveV2::PermissionList::Representation
1878
1999
  command.response_class = Google::Apis::DriveV2::PermissionList
1879
2000
  command.params['fileId'] = file_id unless file_id.nil?
2001
+ command.query['maxResults'] = max_results unless max_results.nil?
2002
+ command.query['pageToken'] = page_token unless page_token.nil?
2003
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1880
2004
  command.query['fields'] = fields unless fields.nil?
1881
2005
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1882
2006
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1885,12 +2009,14 @@ module Google
1885
2009
 
1886
2010
  # Updates a permission using patch semantics.
1887
2011
  # @param [String] file_id
1888
- # The ID for the file.
2012
+ # The ID for the file or Team Drive.
1889
2013
  # @param [String] permission_id
1890
2014
  # The ID for the permission.
1891
2015
  # @param [Google::Apis::DriveV2::Permission] permission_object
1892
2016
  # @param [Boolean] remove_expiration
1893
2017
  # Whether to remove the expiration date.
2018
+ # @param [Boolean] supports_team_drives
2019
+ # Whether the requesting application supports Team Drives.
1894
2020
  # @param [Boolean] transfer_ownership
1895
2021
  # Whether changing a role to 'owner' downgrades the current owners to writers.
1896
2022
  # Does nothing if the specified role is not 'owner'.
@@ -1915,7 +2041,7 @@ module Google
1915
2041
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1916
2042
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1917
2043
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1918
- def patch_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2044
+ def patch_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, supports_team_drives: nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1919
2045
  command = make_simple_command(:patch, 'files/{fileId}/permissions/{permissionId}', options)
1920
2046
  command.request_representation = Google::Apis::DriveV2::Permission::Representation
1921
2047
  command.request_object = permission_object
@@ -1924,6 +2050,7 @@ module Google
1924
2050
  command.params['fileId'] = file_id unless file_id.nil?
1925
2051
  command.params['permissionId'] = permission_id unless permission_id.nil?
1926
2052
  command.query['removeExpiration'] = remove_expiration unless remove_expiration.nil?
2053
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1927
2054
  command.query['transferOwnership'] = transfer_ownership unless transfer_ownership.nil?
1928
2055
  command.query['fields'] = fields unless fields.nil?
1929
2056
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1933,12 +2060,14 @@ module Google
1933
2060
 
1934
2061
  # Updates a permission.
1935
2062
  # @param [String] file_id
1936
- # The ID for the file.
2063
+ # The ID for the file or Team Drive.
1937
2064
  # @param [String] permission_id
1938
2065
  # The ID for the permission.
1939
2066
  # @param [Google::Apis::DriveV2::Permission] permission_object
1940
2067
  # @param [Boolean] remove_expiration
1941
2068
  # Whether to remove the expiration date.
2069
+ # @param [Boolean] supports_team_drives
2070
+ # Whether the requesting application supports Team Drives.
1942
2071
  # @param [Boolean] transfer_ownership
1943
2072
  # Whether changing a role to 'owner' downgrades the current owners to writers.
1944
2073
  # Does nothing if the specified role is not 'owner'.
@@ -1963,7 +2092,7 @@ module Google
1963
2092
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1964
2093
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1965
2094
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1966
- def update_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2095
+ def update_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, supports_team_drives: nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1967
2096
  command = make_simple_command(:put, 'files/{fileId}/permissions/{permissionId}', options)
1968
2097
  command.request_representation = Google::Apis::DriveV2::Permission::Representation
1969
2098
  command.request_object = permission_object
@@ -1972,6 +2101,7 @@ module Google
1972
2101
  command.params['fileId'] = file_id unless file_id.nil?
1973
2102
  command.params['permissionId'] = permission_id unless permission_id.nil?
1974
2103
  command.query['removeExpiration'] = remove_expiration unless remove_expiration.nil?
2104
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1975
2105
  command.query['transferOwnership'] = transfer_ownership unless transfer_ownership.nil?
1976
2106
  command.query['fields'] = fields unless fields.nil?
1977
2107
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -2776,6 +2906,193 @@ module Google
2776
2906
  command.query['userIp'] = user_ip unless user_ip.nil?
2777
2907
  execute_or_queue_command(command, &block)
2778
2908
  end
2909
+
2910
+ # Permanently deletes a Team Drive for which the user is an organizer. The Team
2911
+ # Drive cannot contain any untrashed items.
2912
+ # @param [String] team_drive_id
2913
+ # The ID of the Team Drive
2914
+ # @param [String] fields
2915
+ # Selector specifying which fields to include in a partial response.
2916
+ # @param [String] quota_user
2917
+ # Available to use for quota purposes for server-side applications. Can be any
2918
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2919
+ # Overrides userIp if both are provided.
2920
+ # @param [String] user_ip
2921
+ # IP address of the site where the request originates. Use this if you want to
2922
+ # enforce per-user limits.
2923
+ # @param [Google::Apis::RequestOptions] options
2924
+ # Request-specific options
2925
+ #
2926
+ # @yield [result, err] Result & error if block supplied
2927
+ # @yieldparam result [NilClass] No result returned for this method
2928
+ # @yieldparam err [StandardError] error object if request failed
2929
+ #
2930
+ # @return [void]
2931
+ #
2932
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2933
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2934
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2935
+ def delete_teamdrife(team_drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2936
+ command = make_simple_command(:delete, 'teamdrives/{teamDriveId}', options)
2937
+ command.params['teamDriveId'] = team_drive_id unless team_drive_id.nil?
2938
+ command.query['fields'] = fields unless fields.nil?
2939
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2940
+ command.query['userIp'] = user_ip unless user_ip.nil?
2941
+ execute_or_queue_command(command, &block)
2942
+ end
2943
+
2944
+ # Gets a Team Drive's metadata by ID.
2945
+ # @param [String] team_drive_id
2946
+ # The ID of the Team Drive
2947
+ # @param [String] fields
2948
+ # Selector specifying which fields to include in a partial response.
2949
+ # @param [String] quota_user
2950
+ # Available to use for quota purposes for server-side applications. Can be any
2951
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2952
+ # Overrides userIp if both are provided.
2953
+ # @param [String] user_ip
2954
+ # IP address of the site where the request originates. Use this if you want to
2955
+ # enforce per-user limits.
2956
+ # @param [Google::Apis::RequestOptions] options
2957
+ # Request-specific options
2958
+ #
2959
+ # @yield [result, err] Result & error if block supplied
2960
+ # @yieldparam result [Google::Apis::DriveV2::TeamDrive] parsed result object
2961
+ # @yieldparam err [StandardError] error object if request failed
2962
+ #
2963
+ # @return [Google::Apis::DriveV2::TeamDrive]
2964
+ #
2965
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2966
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2967
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2968
+ def get_teamdrife(team_drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2969
+ command = make_simple_command(:get, 'teamdrives/{teamDriveId}', options)
2970
+ command.response_representation = Google::Apis::DriveV2::TeamDrive::Representation
2971
+ command.response_class = Google::Apis::DriveV2::TeamDrive
2972
+ command.params['teamDriveId'] = team_drive_id unless team_drive_id.nil?
2973
+ command.query['fields'] = fields unless fields.nil?
2974
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2975
+ command.query['userIp'] = user_ip unless user_ip.nil?
2976
+ execute_or_queue_command(command, &block)
2977
+ end
2978
+
2979
+ # Creates a new Team Drive.
2980
+ # @param [String] request_id
2981
+ # An ID, such as a random UUID, which uniquely identifies this user's request
2982
+ # for idempotent creation of a Team Drive. A repeated request by the same user
2983
+ # and with the same request ID will avoid creating duplicates by attempting to
2984
+ # create the same Team Drive. If the Team Drive already exists a 409 error will
2985
+ # be returned.
2986
+ # @param [Google::Apis::DriveV2::TeamDrive] team_drive_object
2987
+ # @param [String] fields
2988
+ # Selector specifying which fields to include in a partial response.
2989
+ # @param [String] quota_user
2990
+ # Available to use for quota purposes for server-side applications. Can be any
2991
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2992
+ # Overrides userIp if both are provided.
2993
+ # @param [String] user_ip
2994
+ # IP address of the site where the request originates. Use this if you want to
2995
+ # enforce per-user limits.
2996
+ # @param [Google::Apis::RequestOptions] options
2997
+ # Request-specific options
2998
+ #
2999
+ # @yield [result, err] Result & error if block supplied
3000
+ # @yieldparam result [Google::Apis::DriveV2::TeamDrive] parsed result object
3001
+ # @yieldparam err [StandardError] error object if request failed
3002
+ #
3003
+ # @return [Google::Apis::DriveV2::TeamDrive]
3004
+ #
3005
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3006
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3007
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3008
+ def insert_teamdrife(request_id, team_drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3009
+ command = make_simple_command(:post, 'teamdrives', options)
3010
+ command.request_representation = Google::Apis::DriveV2::TeamDrive::Representation
3011
+ command.request_object = team_drive_object
3012
+ command.response_representation = Google::Apis::DriveV2::TeamDrive::Representation
3013
+ command.response_class = Google::Apis::DriveV2::TeamDrive
3014
+ command.query['requestId'] = request_id unless request_id.nil?
3015
+ command.query['fields'] = fields unless fields.nil?
3016
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3017
+ command.query['userIp'] = user_ip unless user_ip.nil?
3018
+ execute_or_queue_command(command, &block)
3019
+ end
3020
+
3021
+ # Lists the user's Team Drives.
3022
+ # @param [Fixnum] max_results
3023
+ # Maximum number of Team Drives to return.
3024
+ # @param [String] page_token
3025
+ # Page token for Team Drives.
3026
+ # @param [String] fields
3027
+ # Selector specifying which fields to include in a partial response.
3028
+ # @param [String] quota_user
3029
+ # Available to use for quota purposes for server-side applications. Can be any
3030
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3031
+ # Overrides userIp if both are provided.
3032
+ # @param [String] user_ip
3033
+ # IP address of the site where the request originates. Use this if you want to
3034
+ # enforce per-user limits.
3035
+ # @param [Google::Apis::RequestOptions] options
3036
+ # Request-specific options
3037
+ #
3038
+ # @yield [result, err] Result & error if block supplied
3039
+ # @yieldparam result [Google::Apis::DriveV2::TeamDriveList] parsed result object
3040
+ # @yieldparam err [StandardError] error object if request failed
3041
+ #
3042
+ # @return [Google::Apis::DriveV2::TeamDriveList]
3043
+ #
3044
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3045
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3046
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3047
+ def list_teamdrives(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3048
+ command = make_simple_command(:get, 'teamdrives', options)
3049
+ command.response_representation = Google::Apis::DriveV2::TeamDriveList::Representation
3050
+ command.response_class = Google::Apis::DriveV2::TeamDriveList
3051
+ command.query['maxResults'] = max_results unless max_results.nil?
3052
+ command.query['pageToken'] = page_token unless page_token.nil?
3053
+ command.query['fields'] = fields unless fields.nil?
3054
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3055
+ command.query['userIp'] = user_ip unless user_ip.nil?
3056
+ execute_or_queue_command(command, &block)
3057
+ end
3058
+
3059
+ # Updates a Team Drive's metadata
3060
+ # @param [String] team_drive_id
3061
+ # The ID of the Team Drive
3062
+ # @param [Google::Apis::DriveV2::TeamDrive] team_drive_object
3063
+ # @param [String] fields
3064
+ # Selector specifying which fields to include in a partial response.
3065
+ # @param [String] quota_user
3066
+ # Available to use for quota purposes for server-side applications. Can be any
3067
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3068
+ # Overrides userIp if both are provided.
3069
+ # @param [String] user_ip
3070
+ # IP address of the site where the request originates. Use this if you want to
3071
+ # enforce per-user limits.
3072
+ # @param [Google::Apis::RequestOptions] options
3073
+ # Request-specific options
3074
+ #
3075
+ # @yield [result, err] Result & error if block supplied
3076
+ # @yieldparam result [Google::Apis::DriveV2::TeamDrive] parsed result object
3077
+ # @yieldparam err [StandardError] error object if request failed
3078
+ #
3079
+ # @return [Google::Apis::DriveV2::TeamDrive]
3080
+ #
3081
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3082
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3083
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3084
+ def update_teamdrife(team_drive_id, team_drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3085
+ command = make_simple_command(:put, 'teamdrives/{teamDriveId}', options)
3086
+ command.request_representation = Google::Apis::DriveV2::TeamDrive::Representation
3087
+ command.request_object = team_drive_object
3088
+ command.response_representation = Google::Apis::DriveV2::TeamDrive::Representation
3089
+ command.response_class = Google::Apis::DriveV2::TeamDrive
3090
+ command.params['teamDriveId'] = team_drive_id unless team_drive_id.nil?
3091
+ command.query['fields'] = fields unless fields.nil?
3092
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3093
+ command.query['userIp'] = user_ip unless user_ip.nil?
3094
+ execute_or_queue_command(command, &block)
3095
+ end
2779
3096
 
2780
3097
  protected
2781
3098