google-api-client 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/api_names.yaml +37747 -36512
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1016 -114
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +426 -22
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +481 -95
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +27 -10
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
- data/generated/google/apis/admin_reports_v1.rb +2 -2
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4.rb +4 -4
- data/generated/google/apis/analyticsreporting_v4/classes.rb +428 -428
- data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +60 -66
- data/generated/google/apis/androidenterprise_v1/service.rb +12 -11
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +7 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +1 -1
- data/generated/google/apis/appsactivity_v1.rb +3 -3
- data/generated/google/apis/appsactivity_v1/service.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +34 -8
- data/generated/google/apis/bigquery_v2/representations.rb +15 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +3 -5
- data/generated/google/apis/classroom_v1.rb +25 -22
- data/generated/google/apis/classroom_v1/classes.rb +910 -1001
- data/generated/google/apis/classroom_v1/representations.rb +240 -240
- data/generated/google/apis/classroom_v1/service.rb +1064 -1272
- data/generated/google/apis/cloudbilling_v1.rb +3 -3
- data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
- data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
- data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +238 -238
- data/generated/google/apis/cloudbuild_v1/representations.rb +48 -48
- data/generated/google/apis/cloudbuild_v1/service.rb +176 -176
- data/generated/google/apis/clouddebugger_v2.rb +4 -4
- data/generated/google/apis/clouddebugger_v2/classes.rb +315 -315
- data/generated/google/apis/clouddebugger_v2/representations.rb +90 -90
- data/generated/google/apis/clouddebugger_v2/service.rb +152 -152
- data/generated/google/apis/cloudkms_v1.rb +35 -0
- data/generated/google/apis/cloudkms_v1/classes.rb +1039 -0
- data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1/service.rb +933 -0
- data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +645 -605
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +136 -136
- data/generated/google/apis/cloudkms_v1beta1/service.rb +258 -264
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +677 -456
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +154 -89
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +380 -279
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +247 -114
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +72 -40
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +202 -208
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +39 -39
- data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
- data/generated/google/apis/cloudtrace_v1/service.rb +18 -18
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +813 -82
- data/generated/google/apis/compute_beta/representations.rb +305 -0
- data/generated/google/apis/compute_beta/service.rb +971 -180
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +147 -21
- data/generated/google/apis/compute_v1/representations.rb +38 -0
- data/generated/google/apis/compute_v1/service.rb +347 -65
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +2 -1
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +3352 -3110
- data/generated/google/apis/dataflow_v1b3/representations.rb +812 -730
- data/generated/google/apis/dataflow_v1b3/service.rb +264 -183
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1200 -1164
- data/generated/google/apis/dataproc_v1/representations.rb +220 -204
- data/generated/google/apis/dataproc_v1/service.rb +299 -299
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +688 -688
- data/generated/google/apis/datastore_v1/representations.rb +167 -167
- data/generated/google/apis/datastore_v1/service.rb +68 -68
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +13 -3
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +487 -15
- data/generated/google/apis/drive_v2/representations.rb +120 -0
- data/generated/google/apis/drive_v2/service.rb +355 -38
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +416 -14
- data/generated/google/apis/drive_v3/representations.rb +99 -0
- data/generated/google/apis/drive_v3/service.rb +315 -28
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +7 -7
- data/generated/google/apis/genomics_v1/classes.rb +2301 -2301
- data/generated/google/apis/genomics_v1/representations.rb +239 -239
- data/generated/google/apis/genomics_v1/service.rb +599 -599
- data/generated/google/apis/gmail_v1.rb +2 -2
- data/generated/google/apis/gmail_v1/service.rb +18 -1
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +440 -440
- data/generated/google/apis/iam_v1/representations.rb +96 -96
- data/generated/google/apis/iam_v1/service.rb +150 -150
- data/generated/google/apis/kgsearch_v1/service.rb +13 -13
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +235 -235
- data/generated/google/apis/language_v1beta1/representations.rb +73 -73
- data/generated/google/apis/language_v1beta1/service.rb +49 -49
- data/generated/google/apis/licensing_v1.rb +1 -1
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +888 -879
- data/generated/google/apis/logging_v2beta1/representations.rb +129 -129
- data/generated/google/apis/logging_v2beta1/service.rb +315 -316
- data/generated/google/apis/manufacturers_v1/classes.rb +139 -139
- data/generated/google/apis/manufacturers_v1/representations.rb +30 -30
- data/generated/google/apis/manufacturers_v1/service.rb +32 -32
- data/generated/google/apis/monitoring_v3.rb +4 -4
- data/generated/google/apis/monitoring_v3/classes.rb +229 -229
- data/generated/google/apis/monitoring_v3/representations.rb +45 -45
- data/generated/google/apis/monitoring_v3/service.rb +141 -141
- data/generated/google/apis/partners_v2.rb +3 -3
- data/generated/google/apis/partners_v2/classes.rb +1837 -483
- data/generated/google/apis/partners_v2/representations.rb +614 -157
- data/generated/google/apis/partners_v2/service.rb +881 -150
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +517 -465
- data/generated/google/apis/people_v1/representations.rb +138 -107
- data/generated/google/apis/people_v1/service.rb +56 -49
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +529 -458
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +98 -97
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +494 -370
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +203 -203
- data/generated/google/apis/pubsub_v1/representations.rb +65 -65
- data/generated/google/apis/pubsub_v1/service.rb +226 -217
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +213 -61
- data/generated/google/apis/reseller_v1/representations.rb +27 -0
- data/generated/google/apis/reseller_v1/service.rb +240 -47
- data/generated/google/apis/script_v1.rb +14 -14
- data/generated/google/apis/script_v1/classes.rb +95 -95
- data/generated/google/apis/script_v1/representations.rb +25 -25
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4346 -4300
- data/generated/google/apis/sheets_v4/representations.rb +853 -837
- data/generated/google/apis/sheets_v4/service.rb +32 -32
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +804 -748
- data/generated/google/apis/slides_v1/representations.rb +204 -187
- data/generated/google/apis/slides_v1/service.rb +16 -16
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +57 -57
- data/generated/google/apis/speech_v1beta1/representations.rb +19 -19
- data/generated/google/apis/speech_v1beta1/service.rb +66 -66
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -7
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +16 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +9 -2
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/service.rb +10 -7
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1393 -865
- data/generated/google/apis/vision_v1/representations.rb +367 -102
- data/generated/google/apis/vision_v1/service.rb +4 -4
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +93 -93
- data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
- data/generated/google/apis/youtubereporting_v1/service.rb +108 -108
- data/lib/google/apis/version.rb +1 -1
- metadata +34 -30
@@ -126,6 +126,12 @@ module Google
|
|
126
126
|
|
127
127
|
class Permission
|
128
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
class TeamDrivePermissionDetail
|
131
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
132
|
+
|
133
|
+
include Google::Apis::Core::JsonObjectSupport
|
134
|
+
end
|
129
135
|
|
130
136
|
include Google::Apis::Core::JsonObjectSupport
|
131
137
|
end
|
@@ -166,6 +172,24 @@ module Google
|
|
166
172
|
include Google::Apis::Core::JsonObjectSupport
|
167
173
|
end
|
168
174
|
|
175
|
+
class TeamDrive
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
|
+
|
178
|
+
class Capabilities
|
179
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
180
|
+
|
181
|
+
include Google::Apis::Core::JsonObjectSupport
|
182
|
+
end
|
183
|
+
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
185
|
+
end
|
186
|
+
|
187
|
+
class TeamDriveList
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
|
+
|
190
|
+
include Google::Apis::Core::JsonObjectSupport
|
191
|
+
end
|
192
|
+
|
169
193
|
class User
|
170
194
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
195
|
|
@@ -215,8 +239,12 @@ module Google
|
|
215
239
|
property :file_id, as: 'fileId'
|
216
240
|
property :kind, as: 'kind'
|
217
241
|
property :removed, as: 'removed'
|
242
|
+
property :team_drive, as: 'teamDrive', class: Google::Apis::DriveV3::TeamDrive, decorator: Google::Apis::DriveV3::TeamDrive::Representation
|
243
|
+
|
244
|
+
property :team_drive_id, as: 'teamDriveId'
|
218
245
|
property :time, as: 'time', type: DateTime
|
219
246
|
|
247
|
+
property :type, as: 'type'
|
220
248
|
end
|
221
249
|
end
|
222
250
|
|
@@ -303,6 +331,7 @@ module Google
|
|
303
331
|
property :file_extension, as: 'fileExtension'
|
304
332
|
property :folder_color_rgb, as: 'folderColorRgb'
|
305
333
|
property :full_file_extension, as: 'fullFileExtension'
|
334
|
+
property :has_augmented_permissions, as: 'hasAugmentedPermissions'
|
306
335
|
property :has_thumbnail, as: 'hasThumbnail'
|
307
336
|
property :head_revision_id, as: 'headRevisionId'
|
308
337
|
property :icon_link, as: 'iconLink'
|
@@ -338,9 +367,14 @@ module Google
|
|
338
367
|
property :size, as: 'size'
|
339
368
|
collection :spaces, as: 'spaces'
|
340
369
|
property :starred, as: 'starred'
|
370
|
+
property :team_drive_id, as: 'teamDriveId'
|
341
371
|
property :thumbnail_link, as: 'thumbnailLink'
|
342
372
|
property :thumbnail_version, as: 'thumbnailVersion'
|
343
373
|
property :trashed, as: 'trashed'
|
374
|
+
property :trashed_time, as: 'trashedTime', type: DateTime
|
375
|
+
|
376
|
+
property :trashing_user, as: 'trashingUser', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation
|
377
|
+
|
344
378
|
property :version, as: 'version'
|
345
379
|
property :video_media_metadata, as: 'videoMediaMetadata', class: Google::Apis::DriveV3::File::VideoMediaMetadata, decorator: Google::Apis::DriveV3::File::VideoMediaMetadata::Representation
|
346
380
|
|
@@ -356,11 +390,22 @@ module Google
|
|
356
390
|
class Capabilities
|
357
391
|
# @private
|
358
392
|
class Representation < Google::Apis::Core::JsonRepresentation
|
393
|
+
property :can_add_children, as: 'canAddChildren'
|
359
394
|
property :can_comment, as: 'canComment'
|
360
395
|
property :can_copy, as: 'canCopy'
|
396
|
+
property :can_delete, as: 'canDelete'
|
397
|
+
property :can_download, as: 'canDownload'
|
361
398
|
property :can_edit, as: 'canEdit'
|
399
|
+
property :can_list_children, as: 'canListChildren'
|
400
|
+
property :can_move_item_into_team_drive, as: 'canMoveItemIntoTeamDrive'
|
401
|
+
property :can_move_team_drive_item, as: 'canMoveTeamDriveItem'
|
362
402
|
property :can_read_revisions, as: 'canReadRevisions'
|
403
|
+
property :can_read_team_drive, as: 'canReadTeamDrive'
|
404
|
+
property :can_remove_children, as: 'canRemoveChildren'
|
405
|
+
property :can_rename, as: 'canRename'
|
363
406
|
property :can_share, as: 'canShare'
|
407
|
+
property :can_trash, as: 'canTrash'
|
408
|
+
property :can_untrash, as: 'canUntrash'
|
364
409
|
end
|
365
410
|
end
|
366
411
|
|
@@ -433,6 +478,7 @@ module Google
|
|
433
478
|
class Representation < Google::Apis::Core::JsonRepresentation
|
434
479
|
collection :files, as: 'files', class: Google::Apis::DriveV3::File, decorator: Google::Apis::DriveV3::File::Representation
|
435
480
|
|
481
|
+
property :incomplete_search, as: 'incompleteSearch'
|
436
482
|
property :kind, as: 'kind'
|
437
483
|
property :next_page_token, as: 'nextPageToken'
|
438
484
|
end
|
@@ -460,14 +506,27 @@ module Google
|
|
460
506
|
property :kind, as: 'kind'
|
461
507
|
property :photo_link, as: 'photoLink'
|
462
508
|
property :role, as: 'role'
|
509
|
+
collection :team_drive_permission_details, as: 'teamDrivePermissionDetails', class: Google::Apis::DriveV3::Permission::TeamDrivePermissionDetail, decorator: Google::Apis::DriveV3::Permission::TeamDrivePermissionDetail::Representation
|
510
|
+
|
463
511
|
property :type, as: 'type'
|
464
512
|
end
|
513
|
+
|
514
|
+
class TeamDrivePermissionDetail
|
515
|
+
# @private
|
516
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
517
|
+
property :inherited, as: 'inherited'
|
518
|
+
property :inherited_from, as: 'inheritedFrom'
|
519
|
+
property :role, as: 'role'
|
520
|
+
property :team_drive_permission_type, as: 'teamDrivePermissionType'
|
521
|
+
end
|
522
|
+
end
|
465
523
|
end
|
466
524
|
|
467
525
|
class PermissionList
|
468
526
|
# @private
|
469
527
|
class Representation < Google::Apis::Core::JsonRepresentation
|
470
528
|
property :kind, as: 'kind'
|
529
|
+
property :next_page_token, as: 'nextPageToken'
|
471
530
|
collection :permissions, as: 'permissions', class: Google::Apis::DriveV3::Permission, decorator: Google::Apis::DriveV3::Permission::Representation
|
472
531
|
|
473
532
|
end
|
@@ -539,6 +598,46 @@ module Google
|
|
539
598
|
end
|
540
599
|
end
|
541
600
|
|
601
|
+
class TeamDrive
|
602
|
+
# @private
|
603
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
604
|
+
property :capabilities, as: 'capabilities', class: Google::Apis::DriveV3::TeamDrive::Capabilities, decorator: Google::Apis::DriveV3::TeamDrive::Capabilities::Representation
|
605
|
+
|
606
|
+
property :id, as: 'id'
|
607
|
+
property :kind, as: 'kind'
|
608
|
+
property :name, as: 'name'
|
609
|
+
end
|
610
|
+
|
611
|
+
class Capabilities
|
612
|
+
# @private
|
613
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
614
|
+
property :can_add_children, as: 'canAddChildren'
|
615
|
+
property :can_comment, as: 'canComment'
|
616
|
+
property :can_copy, as: 'canCopy'
|
617
|
+
property :can_delete_team_drive, as: 'canDeleteTeamDrive'
|
618
|
+
property :can_download, as: 'canDownload'
|
619
|
+
property :can_edit, as: 'canEdit'
|
620
|
+
property :can_list_children, as: 'canListChildren'
|
621
|
+
property :can_manage_members, as: 'canManageMembers'
|
622
|
+
property :can_read_revisions, as: 'canReadRevisions'
|
623
|
+
property :can_remove_children, as: 'canRemoveChildren'
|
624
|
+
property :can_rename, as: 'canRename'
|
625
|
+
property :can_rename_team_drive, as: 'canRenameTeamDrive'
|
626
|
+
property :can_share, as: 'canShare'
|
627
|
+
end
|
628
|
+
end
|
629
|
+
end
|
630
|
+
|
631
|
+
class TeamDriveList
|
632
|
+
# @private
|
633
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
634
|
+
property :kind, as: 'kind'
|
635
|
+
property :next_page_token, as: 'nextPageToken'
|
636
|
+
collection :team_drives, as: 'teamDrives', class: Google::Apis::DriveV3::TeamDrive, decorator: Google::Apis::DriveV3::TeamDrive::Representation
|
637
|
+
|
638
|
+
end
|
639
|
+
end
|
640
|
+
|
542
641
|
class User
|
543
642
|
# @private
|
544
643
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -86,6 +86,11 @@ module Google
|
|
86
86
|
end
|
87
87
|
|
88
88
|
# Gets the starting pageToken for listing future changes.
|
89
|
+
# @param [Boolean] supports_team_drives
|
90
|
+
# Whether the requesting application supports Team Drives.
|
91
|
+
# @param [String] team_drive_id
|
92
|
+
# The ID of the Team Drive for which the starting pageToken for listing future
|
93
|
+
# changes from that Team Drive will be returned.
|
89
94
|
# @param [String] fields
|
90
95
|
# Selector specifying which fields to include in a partial response.
|
91
96
|
# @param [String] quota_user
|
@@ -107,24 +112,33 @@ module Google
|
|
107
112
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
108
113
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
109
114
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
110
|
-
def get_changes_start_page_token(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
115
|
+
def get_changes_start_page_token(supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
111
116
|
command = make_simple_command(:get, 'changes/startPageToken', options)
|
112
117
|
command.response_representation = Google::Apis::DriveV3::StartPageToken::Representation
|
113
118
|
command.response_class = Google::Apis::DriveV3::StartPageToken
|
119
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
120
|
+
command.query['teamDriveId'] = team_drive_id unless team_drive_id.nil?
|
114
121
|
command.query['fields'] = fields unless fields.nil?
|
115
122
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
116
123
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
117
124
|
execute_or_queue_command(command, &block)
|
118
125
|
end
|
119
126
|
|
120
|
-
# Lists changes for a user.
|
127
|
+
# Lists the changes for a user or Team Drive.
|
121
128
|
# @param [String] page_token
|
122
129
|
# The token for continuing a previous list request on the next page. This should
|
123
130
|
# be set to the value of 'nextPageToken' from the previous response or to the
|
124
131
|
# response from the getStartPageToken method.
|
132
|
+
# @param [Boolean] include_corpus_removals
|
133
|
+
# Whether changes should include the file resource if the file is still
|
134
|
+
# accessible by the user at the time of the request, even when a file was
|
135
|
+
# removed from the list of changes and there will be no further change entries
|
136
|
+
# for this file.
|
125
137
|
# @param [Boolean] include_removed
|
126
|
-
# Whether to include changes indicating that items have
|
127
|
-
# changes
|
138
|
+
# Whether to include changes indicating that items have been removed from the
|
139
|
+
# list of changes, for example by deletion or loss of access.
|
140
|
+
# @param [Boolean] include_team_drive_items
|
141
|
+
# Whether Team Drive files or changes should be included in results.
|
128
142
|
# @param [Fixnum] page_size
|
129
143
|
# The maximum number of changes to return per page.
|
130
144
|
# @param [Boolean] restrict_to_my_drive
|
@@ -134,6 +148,12 @@ module Google
|
|
134
148
|
# @param [String] spaces
|
135
149
|
# A comma-separated list of spaces to query within the user corpus. Supported
|
136
150
|
# values are 'drive', 'appDataFolder' and 'photos'.
|
151
|
+
# @param [Boolean] supports_team_drives
|
152
|
+
# Whether the requesting application supports Team Drives.
|
153
|
+
# @param [String] team_drive_id
|
154
|
+
# The Team Drive from which changes will be returned. If specified the change
|
155
|
+
# IDs will be reflective of the Team Drive; use the combined Team Drive ID and
|
156
|
+
# change ID as an identifier.
|
137
157
|
# @param [String] fields
|
138
158
|
# Selector specifying which fields to include in a partial response.
|
139
159
|
# @param [String] quota_user
|
@@ -155,15 +175,19 @@ module Google
|
|
155
175
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
156
176
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
157
177
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
158
|
-
def list_changes(page_token, include_removed: nil, page_size: nil, restrict_to_my_drive: nil, spaces: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
178
|
+
def list_changes(page_token, include_corpus_removals: nil, include_removed: nil, include_team_drive_items: nil, page_size: nil, restrict_to_my_drive: nil, spaces: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
159
179
|
command = make_simple_command(:get, 'changes', options)
|
160
180
|
command.response_representation = Google::Apis::DriveV3::ChangeList::Representation
|
161
181
|
command.response_class = Google::Apis::DriveV3::ChangeList
|
182
|
+
command.query['includeCorpusRemovals'] = include_corpus_removals unless include_corpus_removals.nil?
|
162
183
|
command.query['includeRemoved'] = include_removed unless include_removed.nil?
|
184
|
+
command.query['includeTeamDriveItems'] = include_team_drive_items unless include_team_drive_items.nil?
|
163
185
|
command.query['pageSize'] = page_size unless page_size.nil?
|
164
186
|
command.query['pageToken'] = page_token unless page_token.nil?
|
165
187
|
command.query['restrictToMyDrive'] = restrict_to_my_drive unless restrict_to_my_drive.nil?
|
166
188
|
command.query['spaces'] = spaces unless spaces.nil?
|
189
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
190
|
+
command.query['teamDriveId'] = team_drive_id unless team_drive_id.nil?
|
167
191
|
command.query['fields'] = fields unless fields.nil?
|
168
192
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
169
193
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -176,9 +200,16 @@ module Google
|
|
176
200
|
# be set to the value of 'nextPageToken' from the previous response or to the
|
177
201
|
# response from the getStartPageToken method.
|
178
202
|
# @param [Google::Apis::DriveV3::Channel] channel_object
|
203
|
+
# @param [Boolean] include_corpus_removals
|
204
|
+
# Whether changes should include the file resource if the file is still
|
205
|
+
# accessible by the user at the time of the request, even when a file was
|
206
|
+
# removed from the list of changes and there will be no further change entries
|
207
|
+
# for this file.
|
179
208
|
# @param [Boolean] include_removed
|
180
|
-
# Whether to include changes indicating that items have
|
181
|
-
# changes
|
209
|
+
# Whether to include changes indicating that items have been removed from the
|
210
|
+
# list of changes, for example by deletion or loss of access.
|
211
|
+
# @param [Boolean] include_team_drive_items
|
212
|
+
# Whether Team Drive files or changes should be included in results.
|
182
213
|
# @param [Fixnum] page_size
|
183
214
|
# The maximum number of changes to return per page.
|
184
215
|
# @param [Boolean] restrict_to_my_drive
|
@@ -188,6 +219,12 @@ module Google
|
|
188
219
|
# @param [String] spaces
|
189
220
|
# A comma-separated list of spaces to query within the user corpus. Supported
|
190
221
|
# values are 'drive', 'appDataFolder' and 'photos'.
|
222
|
+
# @param [Boolean] supports_team_drives
|
223
|
+
# Whether the requesting application supports Team Drives.
|
224
|
+
# @param [String] team_drive_id
|
225
|
+
# The Team Drive from which changes will be returned. If specified the change
|
226
|
+
# IDs will be reflective of the Team Drive; use the combined Team Drive ID and
|
227
|
+
# change ID as an identifier.
|
191
228
|
# @param [String] fields
|
192
229
|
# Selector specifying which fields to include in a partial response.
|
193
230
|
# @param [String] quota_user
|
@@ -209,17 +246,21 @@ module Google
|
|
209
246
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
210
247
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
211
248
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
212
|
-
def watch_change(page_token, channel_object = nil, include_removed: nil, page_size: nil, restrict_to_my_drive: nil, spaces: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
249
|
+
def watch_change(page_token, channel_object = nil, include_corpus_removals: nil, include_removed: nil, include_team_drive_items: nil, page_size: nil, restrict_to_my_drive: nil, spaces: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
213
250
|
command = make_simple_command(:post, 'changes/watch', options)
|
214
251
|
command.request_representation = Google::Apis::DriveV3::Channel::Representation
|
215
252
|
command.request_object = channel_object
|
216
253
|
command.response_representation = Google::Apis::DriveV3::Channel::Representation
|
217
254
|
command.response_class = Google::Apis::DriveV3::Channel
|
255
|
+
command.query['includeCorpusRemovals'] = include_corpus_removals unless include_corpus_removals.nil?
|
218
256
|
command.query['includeRemoved'] = include_removed unless include_removed.nil?
|
257
|
+
command.query['includeTeamDriveItems'] = include_team_drive_items unless include_team_drive_items.nil?
|
219
258
|
command.query['pageSize'] = page_size unless page_size.nil?
|
220
259
|
command.query['pageToken'] = page_token unless page_token.nil?
|
221
260
|
command.query['restrictToMyDrive'] = restrict_to_my_drive unless restrict_to_my_drive.nil?
|
222
261
|
command.query['spaces'] = spaces unless spaces.nil?
|
262
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
263
|
+
command.query['teamDriveId'] = team_drive_id unless team_drive_id.nil?
|
223
264
|
command.query['fields'] = fields unless fields.nil?
|
224
265
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
225
266
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -481,6 +522,8 @@ module Google
|
|
481
522
|
# applicable to files with binary content in Drive.
|
482
523
|
# @param [String] ocr_language
|
483
524
|
# A language hint for OCR processing during image import (ISO 639-1 code).
|
525
|
+
# @param [Boolean] supports_team_drives
|
526
|
+
# Whether the requesting application supports Team Drives.
|
484
527
|
# @param [String] fields
|
485
528
|
# Selector specifying which fields to include in a partial response.
|
486
529
|
# @param [String] quota_user
|
@@ -502,7 +545,7 @@ module Google
|
|
502
545
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
503
546
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
504
547
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
505
|
-
def copy_file(file_id, file_object = nil, ignore_default_visibility: nil, keep_revision_forever: nil, ocr_language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
548
|
+
def copy_file(file_id, file_object = nil, ignore_default_visibility: nil, keep_revision_forever: nil, ocr_language: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
506
549
|
command = make_simple_command(:post, 'files/{fileId}/copy', options)
|
507
550
|
command.request_representation = Google::Apis::DriveV3::File::Representation
|
508
551
|
command.request_object = file_object
|
@@ -512,6 +555,7 @@ module Google
|
|
512
555
|
command.query['ignoreDefaultVisibility'] = ignore_default_visibility unless ignore_default_visibility.nil?
|
513
556
|
command.query['keepRevisionForever'] = keep_revision_forever unless keep_revision_forever.nil?
|
514
557
|
command.query['ocrLanguage'] = ocr_language unless ocr_language.nil?
|
558
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
515
559
|
command.query['fields'] = fields unless fields.nil?
|
516
560
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
517
561
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -530,6 +574,8 @@ module Google
|
|
530
574
|
# applicable to files with binary content in Drive.
|
531
575
|
# @param [String] ocr_language
|
532
576
|
# A language hint for OCR processing during image import (ISO 639-1 code).
|
577
|
+
# @param [Boolean] supports_team_drives
|
578
|
+
# Whether the requesting application supports Team Drives.
|
533
579
|
# @param [Boolean] use_content_as_indexable_text
|
534
580
|
# Whether to use the uploaded content as indexable text.
|
535
581
|
# @param [String] fields
|
@@ -557,7 +603,7 @@ module Google
|
|
557
603
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
558
604
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
559
605
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
560
|
-
def create_file(file_object = nil, ignore_default_visibility: nil, keep_revision_forever: nil, ocr_language: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
606
|
+
def create_file(file_object = nil, ignore_default_visibility: nil, keep_revision_forever: nil, ocr_language: nil, supports_team_drives: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
561
607
|
if upload_source.nil?
|
562
608
|
command = make_simple_command(:post, 'files', options)
|
563
609
|
else
|
@@ -572,6 +618,7 @@ module Google
|
|
572
618
|
command.query['ignoreDefaultVisibility'] = ignore_default_visibility unless ignore_default_visibility.nil?
|
573
619
|
command.query['keepRevisionForever'] = keep_revision_forever unless keep_revision_forever.nil?
|
574
620
|
command.query['ocrLanguage'] = ocr_language unless ocr_language.nil?
|
621
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
575
622
|
command.query['useContentAsIndexableText'] = use_content_as_indexable_text unless use_content_as_indexable_text.nil?
|
576
623
|
command.query['fields'] = fields unless fields.nil?
|
577
624
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -580,9 +627,13 @@ module Google
|
|
580
627
|
end
|
581
628
|
|
582
629
|
# Permanently deletes a file owned by the user without moving it to the trash.
|
583
|
-
# If the
|
630
|
+
# If the file belongs to a Team Drive the user must be an organizer on the
|
631
|
+
# parent. If the target is a folder, all descendants owned by the user are also
|
632
|
+
# deleted.
|
584
633
|
# @param [String] file_id
|
585
634
|
# The ID of the file.
|
635
|
+
# @param [Boolean] supports_team_drives
|
636
|
+
# Whether the requesting application supports Team Drives.
|
586
637
|
# @param [String] fields
|
587
638
|
# Selector specifying which fields to include in a partial response.
|
588
639
|
# @param [String] quota_user
|
@@ -604,9 +655,10 @@ module Google
|
|
604
655
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
605
656
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
606
657
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
607
|
-
def delete_file(file_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
658
|
+
def delete_file(file_id, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
608
659
|
command = make_simple_command(:delete, 'files/{fileId}', options)
|
609
660
|
command.params['fileId'] = file_id unless file_id.nil?
|
661
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
610
662
|
command.query['fields'] = fields unless fields.nil?
|
611
663
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
612
664
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -732,6 +784,8 @@ module Google
|
|
732
784
|
# @param [Boolean] acknowledge_abuse
|
733
785
|
# Whether the user is acknowledging the risk of downloading known malware or
|
734
786
|
# other abusive files. This is only applicable when alt=media.
|
787
|
+
# @param [Boolean] supports_team_drives
|
788
|
+
# Whether the requesting application supports Team Drives.
|
735
789
|
# @param [String] fields
|
736
790
|
# Selector specifying which fields to include in a partial response.
|
737
791
|
# @param [String] quota_user
|
@@ -755,7 +809,7 @@ module Google
|
|
755
809
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
756
810
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
757
811
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
758
|
-
def get_file(file_id, acknowledge_abuse: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
812
|
+
def get_file(file_id, acknowledge_abuse: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
759
813
|
if download_dest.nil?
|
760
814
|
command = make_simple_command(:get, 'files/{fileId}', options)
|
761
815
|
else
|
@@ -766,6 +820,7 @@ module Google
|
|
766
820
|
command.response_class = Google::Apis::DriveV3::File
|
767
821
|
command.params['fileId'] = file_id unless file_id.nil?
|
768
822
|
command.query['acknowledgeAbuse'] = acknowledge_abuse unless acknowledge_abuse.nil?
|
823
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
769
824
|
command.query['fields'] = fields unless fields.nil?
|
770
825
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
771
826
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -773,8 +828,15 @@ module Google
|
|
773
828
|
end
|
774
829
|
|
775
830
|
# Lists or searches files.
|
831
|
+
# @param [String] corpora
|
832
|
+
# Comma-separated list of bodies of items (files/documents) to which the query
|
833
|
+
# applies. Supported bodies are 'user', 'domain', 'teamDrive' and 'allTeamDrives'
|
834
|
+
# . 'allTeamDrives' must be combined with 'user'; all other values must be used
|
835
|
+
# in isolation. Prefer 'user' or 'teamDrive' to 'allTeamDrives' for efficiency.
|
776
836
|
# @param [String] corpus
|
777
|
-
# The source of files to list.
|
837
|
+
# The source of files to list. Deprecated: use 'corpora' instead.
|
838
|
+
# @param [Boolean] include_team_drive_items
|
839
|
+
# Whether Team Drive items should be included in results.
|
778
840
|
# @param [String] order_by
|
779
841
|
# A comma-separated list of sort keys. Valid keys are 'createdTime', 'folder', '
|
780
842
|
# modifiedByMeTime', 'modifiedTime', 'name', 'quotaBytesUsed', 'recency', '
|
@@ -794,6 +856,10 @@ module Google
|
|
794
856
|
# @param [String] spaces
|
795
857
|
# A comma-separated list of spaces to query within the corpus. Supported values
|
796
858
|
# are 'drive', 'appDataFolder' and 'photos'.
|
859
|
+
# @param [Boolean] supports_team_drives
|
860
|
+
# Whether the requesting application supports Team Drives.
|
861
|
+
# @param [String] team_drive_id
|
862
|
+
# ID of Team Drive to search.
|
797
863
|
# @param [String] fields
|
798
864
|
# Selector specifying which fields to include in a partial response.
|
799
865
|
# @param [String] quota_user
|
@@ -815,16 +881,20 @@ module Google
|
|
815
881
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
816
882
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
817
883
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
818
|
-
def list_files(corpus: nil, order_by: nil, page_size: nil, page_token: nil, q: nil, spaces: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
884
|
+
def list_files(corpora: nil, corpus: nil, include_team_drive_items: nil, order_by: nil, page_size: nil, page_token: nil, q: nil, spaces: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
819
885
|
command = make_simple_command(:get, 'files', options)
|
820
886
|
command.response_representation = Google::Apis::DriveV3::FileList::Representation
|
821
887
|
command.response_class = Google::Apis::DriveV3::FileList
|
888
|
+
command.query['corpora'] = corpora unless corpora.nil?
|
822
889
|
command.query['corpus'] = corpus unless corpus.nil?
|
890
|
+
command.query['includeTeamDriveItems'] = include_team_drive_items unless include_team_drive_items.nil?
|
823
891
|
command.query['orderBy'] = order_by unless order_by.nil?
|
824
892
|
command.query['pageSize'] = page_size unless page_size.nil?
|
825
893
|
command.query['pageToken'] = page_token unless page_token.nil?
|
826
894
|
command.query['q'] = q unless q.nil?
|
827
895
|
command.query['spaces'] = spaces unless spaces.nil?
|
896
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
897
|
+
command.query['teamDriveId'] = team_drive_id unless team_drive_id.nil?
|
828
898
|
command.query['fields'] = fields unless fields.nil?
|
829
899
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
830
900
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -844,6 +914,8 @@ module Google
|
|
844
914
|
# A language hint for OCR processing during image import (ISO 639-1 code).
|
845
915
|
# @param [String] remove_parents
|
846
916
|
# A comma-separated list of parent IDs to remove.
|
917
|
+
# @param [Boolean] supports_team_drives
|
918
|
+
# Whether the requesting application supports Team Drives.
|
847
919
|
# @param [Boolean] use_content_as_indexable_text
|
848
920
|
# Whether to use the uploaded content as indexable text.
|
849
921
|
# @param [String] fields
|
@@ -871,7 +943,7 @@ module Google
|
|
871
943
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
872
944
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
873
945
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
874
|
-
def update_file(file_id, file_object = nil, add_parents: nil, keep_revision_forever: nil, ocr_language: nil, remove_parents: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
946
|
+
def update_file(file_id, file_object = nil, add_parents: nil, keep_revision_forever: nil, ocr_language: nil, remove_parents: nil, supports_team_drives: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
875
947
|
if upload_source.nil?
|
876
948
|
command = make_simple_command(:patch, 'files/{fileId}', options)
|
877
949
|
else
|
@@ -888,6 +960,7 @@ module Google
|
|
888
960
|
command.query['keepRevisionForever'] = keep_revision_forever unless keep_revision_forever.nil?
|
889
961
|
command.query['ocrLanguage'] = ocr_language unless ocr_language.nil?
|
890
962
|
command.query['removeParents'] = remove_parents unless remove_parents.nil?
|
963
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
891
964
|
command.query['useContentAsIndexableText'] = use_content_as_indexable_text unless use_content_as_indexable_text.nil?
|
892
965
|
command.query['fields'] = fields unless fields.nil?
|
893
966
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -902,6 +975,8 @@ module Google
|
|
902
975
|
# @param [Boolean] acknowledge_abuse
|
903
976
|
# Whether the user is acknowledging the risk of downloading known malware or
|
904
977
|
# other abusive files. This is only applicable when alt=media.
|
978
|
+
# @param [Boolean] supports_team_drives
|
979
|
+
# Whether the requesting application supports Team Drives.
|
905
980
|
# @param [String] fields
|
906
981
|
# Selector specifying which fields to include in a partial response.
|
907
982
|
# @param [String] quota_user
|
@@ -925,7 +1000,7 @@ module Google
|
|
925
1000
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
926
1001
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
927
1002
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
928
|
-
def watch_file(file_id, channel_object = nil, acknowledge_abuse: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
1003
|
+
def watch_file(file_id, channel_object = nil, acknowledge_abuse: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
929
1004
|
if download_dest.nil?
|
930
1005
|
command = make_simple_command(:post, 'files/{fileId}/watch', options)
|
931
1006
|
else
|
@@ -938,15 +1013,16 @@ module Google
|
|
938
1013
|
command.response_class = Google::Apis::DriveV3::Channel
|
939
1014
|
command.params['fileId'] = file_id unless file_id.nil?
|
940
1015
|
command.query['acknowledgeAbuse'] = acknowledge_abuse unless acknowledge_abuse.nil?
|
1016
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
941
1017
|
command.query['fields'] = fields unless fields.nil?
|
942
1018
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
943
1019
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
944
1020
|
execute_or_queue_command(command, &block)
|
945
1021
|
end
|
946
1022
|
|
947
|
-
# Creates a permission for a file.
|
1023
|
+
# Creates a permission for a file or Team Drive.
|
948
1024
|
# @param [String] file_id
|
949
|
-
# The ID of the file.
|
1025
|
+
# The ID of the file or Team Drive.
|
950
1026
|
# @param [Google::Apis::DriveV3::Permission] permission_object
|
951
1027
|
# @param [String] email_message
|
952
1028
|
# A custom message to include in the notification email.
|
@@ -954,6 +1030,8 @@ module Google
|
|
954
1030
|
# Whether to send a notification email when sharing to users or groups. This
|
955
1031
|
# defaults to true for users and groups, and is not allowed for other requests.
|
956
1032
|
# It must not be disabled for ownership transfers.
|
1033
|
+
# @param [Boolean] supports_team_drives
|
1034
|
+
# Whether the requesting application supports Team Drives.
|
957
1035
|
# @param [Boolean] transfer_ownership
|
958
1036
|
# Whether to transfer ownership to the specified user and downgrade the current
|
959
1037
|
# owner to a writer. This parameter is required as an acknowledgement of the
|
@@ -979,7 +1057,7 @@ module Google
|
|
979
1057
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
980
1058
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
981
1059
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
982
|
-
def create_permission(file_id, permission_object = nil, email_message: nil, send_notification_email: nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1060
|
+
def create_permission(file_id, permission_object = nil, email_message: nil, send_notification_email: nil, supports_team_drives: nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
983
1061
|
command = make_simple_command(:post, 'files/{fileId}/permissions', options)
|
984
1062
|
command.request_representation = Google::Apis::DriveV3::Permission::Representation
|
985
1063
|
command.request_object = permission_object
|
@@ -988,6 +1066,7 @@ module Google
|
|
988
1066
|
command.params['fileId'] = file_id unless file_id.nil?
|
989
1067
|
command.query['emailMessage'] = email_message unless email_message.nil?
|
990
1068
|
command.query['sendNotificationEmail'] = send_notification_email unless send_notification_email.nil?
|
1069
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
991
1070
|
command.query['transferOwnership'] = transfer_ownership unless transfer_ownership.nil?
|
992
1071
|
command.query['fields'] = fields unless fields.nil?
|
993
1072
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -997,9 +1076,11 @@ module Google
|
|
997
1076
|
|
998
1077
|
# Deletes a permission.
|
999
1078
|
# @param [String] file_id
|
1000
|
-
# The ID of the file.
|
1079
|
+
# The ID of the file or Team Drive.
|
1001
1080
|
# @param [String] permission_id
|
1002
1081
|
# The ID of the permission.
|
1082
|
+
# @param [Boolean] supports_team_drives
|
1083
|
+
# Whether the requesting application supports Team Drives.
|
1003
1084
|
# @param [String] fields
|
1004
1085
|
# Selector specifying which fields to include in a partial response.
|
1005
1086
|
# @param [String] quota_user
|
@@ -1021,10 +1102,11 @@ module Google
|
|
1021
1102
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1022
1103
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1023
1104
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1024
|
-
def delete_permission(file_id, permission_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1105
|
+
def delete_permission(file_id, permission_id, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1025
1106
|
command = make_simple_command(:delete, 'files/{fileId}/permissions/{permissionId}', options)
|
1026
1107
|
command.params['fileId'] = file_id unless file_id.nil?
|
1027
1108
|
command.params['permissionId'] = permission_id unless permission_id.nil?
|
1109
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
1028
1110
|
command.query['fields'] = fields unless fields.nil?
|
1029
1111
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1030
1112
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -1036,6 +1118,8 @@ module Google
|
|
1036
1118
|
# The ID of the file.
|
1037
1119
|
# @param [String] permission_id
|
1038
1120
|
# The ID of the permission.
|
1121
|
+
# @param [Boolean] supports_team_drives
|
1122
|
+
# Whether the requesting application supports Team Drives.
|
1039
1123
|
# @param [String] fields
|
1040
1124
|
# Selector specifying which fields to include in a partial response.
|
1041
1125
|
# @param [String] quota_user
|
@@ -1057,21 +1141,31 @@ module Google
|
|
1057
1141
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1058
1142
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1059
1143
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1060
|
-
def get_permission(file_id, permission_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1144
|
+
def get_permission(file_id, permission_id, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1061
1145
|
command = make_simple_command(:get, 'files/{fileId}/permissions/{permissionId}', options)
|
1062
1146
|
command.response_representation = Google::Apis::DriveV3::Permission::Representation
|
1063
1147
|
command.response_class = Google::Apis::DriveV3::Permission
|
1064
1148
|
command.params['fileId'] = file_id unless file_id.nil?
|
1065
1149
|
command.params['permissionId'] = permission_id unless permission_id.nil?
|
1150
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
1066
1151
|
command.query['fields'] = fields unless fields.nil?
|
1067
1152
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1068
1153
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
1069
1154
|
execute_or_queue_command(command, &block)
|
1070
1155
|
end
|
1071
1156
|
|
1072
|
-
# Lists a file's permissions.
|
1157
|
+
# Lists a file's or Team Drive's permissions.
|
1073
1158
|
# @param [String] file_id
|
1074
|
-
# The ID of the file.
|
1159
|
+
# The ID of the file or Team Drive.
|
1160
|
+
# @param [Fixnum] page_size
|
1161
|
+
# The maximum number of permissions to return per page. When not set for files
|
1162
|
+
# in a Team Drive, at most 100 results will be returned. When not set for files
|
1163
|
+
# that are not in a Team Drive, the entire list will be returned.
|
1164
|
+
# @param [String] page_token
|
1165
|
+
# The token for continuing a previous list request on the next page. This should
|
1166
|
+
# be set to the value of 'nextPageToken' from the previous response.
|
1167
|
+
# @param [Boolean] supports_team_drives
|
1168
|
+
# Whether the requesting application supports Team Drives.
|
1075
1169
|
# @param [String] fields
|
1076
1170
|
# Selector specifying which fields to include in a partial response.
|
1077
1171
|
# @param [String] quota_user
|
@@ -1093,11 +1187,14 @@ module Google
|
|
1093
1187
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1094
1188
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1095
1189
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1096
|
-
def list_permissions(file_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1190
|
+
def list_permissions(file_id, page_size: nil, page_token: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1097
1191
|
command = make_simple_command(:get, 'files/{fileId}/permissions', options)
|
1098
1192
|
command.response_representation = Google::Apis::DriveV3::PermissionList::Representation
|
1099
1193
|
command.response_class = Google::Apis::DriveV3::PermissionList
|
1100
1194
|
command.params['fileId'] = file_id unless file_id.nil?
|
1195
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1196
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1197
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
1101
1198
|
command.query['fields'] = fields unless fields.nil?
|
1102
1199
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1103
1200
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -1106,12 +1203,14 @@ module Google
|
|
1106
1203
|
|
1107
1204
|
# Updates a permission with patch semantics.
|
1108
1205
|
# @param [String] file_id
|
1109
|
-
# The ID of the file.
|
1206
|
+
# The ID of the file or Team Drive.
|
1110
1207
|
# @param [String] permission_id
|
1111
1208
|
# The ID of the permission.
|
1112
1209
|
# @param [Google::Apis::DriveV3::Permission] permission_object
|
1113
1210
|
# @param [Boolean] remove_expiration
|
1114
1211
|
# Whether to remove the expiration date.
|
1212
|
+
# @param [Boolean] supports_team_drives
|
1213
|
+
# Whether the requesting application supports Team Drives.
|
1115
1214
|
# @param [Boolean] transfer_ownership
|
1116
1215
|
# Whether to transfer ownership to the specified user and downgrade the current
|
1117
1216
|
# owner to a writer. This parameter is required as an acknowledgement of the
|
@@ -1137,7 +1236,7 @@ module Google
|
|
1137
1236
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1138
1237
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1139
1238
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1140
|
-
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)
|
1239
|
+
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)
|
1141
1240
|
command = make_simple_command(:patch, 'files/{fileId}/permissions/{permissionId}', options)
|
1142
1241
|
command.request_representation = Google::Apis::DriveV3::Permission::Representation
|
1143
1242
|
command.request_object = permission_object
|
@@ -1146,6 +1245,7 @@ module Google
|
|
1146
1245
|
command.params['fileId'] = file_id unless file_id.nil?
|
1147
1246
|
command.params['permissionId'] = permission_id unless permission_id.nil?
|
1148
1247
|
command.query['removeExpiration'] = remove_expiration unless remove_expiration.nil?
|
1248
|
+
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
1149
1249
|
command.query['transferOwnership'] = transfer_ownership unless transfer_ownership.nil?
|
1150
1250
|
command.query['fields'] = fields unless fields.nil?
|
1151
1251
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -1539,6 +1639,193 @@ module Google
|
|
1539
1639
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
1540
1640
|
execute_or_queue_command(command, &block)
|
1541
1641
|
end
|
1642
|
+
|
1643
|
+
# Creates a new Team Drive.
|
1644
|
+
# @param [String] request_id
|
1645
|
+
# An ID, such as a random UUID, which uniquely identifies this user's request
|
1646
|
+
# for idempotent creation of a Team Drive. A repeated request by the same user
|
1647
|
+
# and with the same request ID will avoid creating duplicates by attempting to
|
1648
|
+
# create the same Team Drive. If the Team Drive already exists a 409 error will
|
1649
|
+
# be returned.
|
1650
|
+
# @param [Google::Apis::DriveV3::TeamDrive] team_drive_object
|
1651
|
+
# @param [String] fields
|
1652
|
+
# Selector specifying which fields to include in a partial response.
|
1653
|
+
# @param [String] quota_user
|
1654
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1655
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1656
|
+
# Overrides userIp if both are provided.
|
1657
|
+
# @param [String] user_ip
|
1658
|
+
# IP address of the site where the request originates. Use this if you want to
|
1659
|
+
# enforce per-user limits.
|
1660
|
+
# @param [Google::Apis::RequestOptions] options
|
1661
|
+
# Request-specific options
|
1662
|
+
#
|
1663
|
+
# @yield [result, err] Result & error if block supplied
|
1664
|
+
# @yieldparam result [Google::Apis::DriveV3::TeamDrive] parsed result object
|
1665
|
+
# @yieldparam err [StandardError] error object if request failed
|
1666
|
+
#
|
1667
|
+
# @return [Google::Apis::DriveV3::TeamDrive]
|
1668
|
+
#
|
1669
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1670
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1671
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1672
|
+
def create_teamdrife(request_id, team_drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1673
|
+
command = make_simple_command(:post, 'teamdrives', options)
|
1674
|
+
command.request_representation = Google::Apis::DriveV3::TeamDrive::Representation
|
1675
|
+
command.request_object = team_drive_object
|
1676
|
+
command.response_representation = Google::Apis::DriveV3::TeamDrive::Representation
|
1677
|
+
command.response_class = Google::Apis::DriveV3::TeamDrive
|
1678
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
1679
|
+
command.query['fields'] = fields unless fields.nil?
|
1680
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1681
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1682
|
+
execute_or_queue_command(command, &block)
|
1683
|
+
end
|
1684
|
+
|
1685
|
+
# Permanently deletes a Team Drive for which the user is an organizer. The Team
|
1686
|
+
# Drive cannot contain any untrashed items.
|
1687
|
+
# @param [String] team_drive_id
|
1688
|
+
# The ID of the Team Drive
|
1689
|
+
# @param [String] fields
|
1690
|
+
# Selector specifying which fields to include in a partial response.
|
1691
|
+
# @param [String] quota_user
|
1692
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1693
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1694
|
+
# Overrides userIp if both are provided.
|
1695
|
+
# @param [String] user_ip
|
1696
|
+
# IP address of the site where the request originates. Use this if you want to
|
1697
|
+
# enforce per-user limits.
|
1698
|
+
# @param [Google::Apis::RequestOptions] options
|
1699
|
+
# Request-specific options
|
1700
|
+
#
|
1701
|
+
# @yield [result, err] Result & error if block supplied
|
1702
|
+
# @yieldparam result [NilClass] No result returned for this method
|
1703
|
+
# @yieldparam err [StandardError] error object if request failed
|
1704
|
+
#
|
1705
|
+
# @return [void]
|
1706
|
+
#
|
1707
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1708
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1709
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1710
|
+
def delete_teamdrife(team_drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1711
|
+
command = make_simple_command(:delete, 'teamdrives/{teamDriveId}', options)
|
1712
|
+
command.params['teamDriveId'] = team_drive_id unless team_drive_id.nil?
|
1713
|
+
command.query['fields'] = fields unless fields.nil?
|
1714
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1715
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1716
|
+
execute_or_queue_command(command, &block)
|
1717
|
+
end
|
1718
|
+
|
1719
|
+
# Gets a Team Drive's metadata by ID.
|
1720
|
+
# @param [String] team_drive_id
|
1721
|
+
# The ID of the Team Drive
|
1722
|
+
# @param [String] fields
|
1723
|
+
# Selector specifying which fields to include in a partial response.
|
1724
|
+
# @param [String] quota_user
|
1725
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1726
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1727
|
+
# Overrides userIp if both are provided.
|
1728
|
+
# @param [String] user_ip
|
1729
|
+
# IP address of the site where the request originates. Use this if you want to
|
1730
|
+
# enforce per-user limits.
|
1731
|
+
# @param [Google::Apis::RequestOptions] options
|
1732
|
+
# Request-specific options
|
1733
|
+
#
|
1734
|
+
# @yield [result, err] Result & error if block supplied
|
1735
|
+
# @yieldparam result [Google::Apis::DriveV3::TeamDrive] parsed result object
|
1736
|
+
# @yieldparam err [StandardError] error object if request failed
|
1737
|
+
#
|
1738
|
+
# @return [Google::Apis::DriveV3::TeamDrive]
|
1739
|
+
#
|
1740
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1741
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1742
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1743
|
+
def get_teamdrife(team_drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1744
|
+
command = make_simple_command(:get, 'teamdrives/{teamDriveId}', options)
|
1745
|
+
command.response_representation = Google::Apis::DriveV3::TeamDrive::Representation
|
1746
|
+
command.response_class = Google::Apis::DriveV3::TeamDrive
|
1747
|
+
command.params['teamDriveId'] = team_drive_id unless team_drive_id.nil?
|
1748
|
+
command.query['fields'] = fields unless fields.nil?
|
1749
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1750
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1751
|
+
execute_or_queue_command(command, &block)
|
1752
|
+
end
|
1753
|
+
|
1754
|
+
# Lists the user's Team Drives.
|
1755
|
+
# @param [Fixnum] page_size
|
1756
|
+
# Maximum number of Team Drives to return.
|
1757
|
+
# @param [String] page_token
|
1758
|
+
# Page token for Team Drives.
|
1759
|
+
# @param [String] fields
|
1760
|
+
# Selector specifying which fields to include in a partial response.
|
1761
|
+
# @param [String] quota_user
|
1762
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1763
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1764
|
+
# Overrides userIp if both are provided.
|
1765
|
+
# @param [String] user_ip
|
1766
|
+
# IP address of the site where the request originates. Use this if you want to
|
1767
|
+
# enforce per-user limits.
|
1768
|
+
# @param [Google::Apis::RequestOptions] options
|
1769
|
+
# Request-specific options
|
1770
|
+
#
|
1771
|
+
# @yield [result, err] Result & error if block supplied
|
1772
|
+
# @yieldparam result [Google::Apis::DriveV3::TeamDriveList] parsed result object
|
1773
|
+
# @yieldparam err [StandardError] error object if request failed
|
1774
|
+
#
|
1775
|
+
# @return [Google::Apis::DriveV3::TeamDriveList]
|
1776
|
+
#
|
1777
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1778
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1779
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1780
|
+
def list_teamdrives(page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1781
|
+
command = make_simple_command(:get, 'teamdrives', options)
|
1782
|
+
command.response_representation = Google::Apis::DriveV3::TeamDriveList::Representation
|
1783
|
+
command.response_class = Google::Apis::DriveV3::TeamDriveList
|
1784
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1785
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1786
|
+
command.query['fields'] = fields unless fields.nil?
|
1787
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1788
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1789
|
+
execute_or_queue_command(command, &block)
|
1790
|
+
end
|
1791
|
+
|
1792
|
+
# Updates a Team Drive's metadata
|
1793
|
+
# @param [String] team_drive_id
|
1794
|
+
# The ID of the Team Drive
|
1795
|
+
# @param [Google::Apis::DriveV3::TeamDrive] team_drive_object
|
1796
|
+
# @param [String] fields
|
1797
|
+
# Selector specifying which fields to include in a partial response.
|
1798
|
+
# @param [String] quota_user
|
1799
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1800
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1801
|
+
# Overrides userIp if both are provided.
|
1802
|
+
# @param [String] user_ip
|
1803
|
+
# IP address of the site where the request originates. Use this if you want to
|
1804
|
+
# enforce per-user limits.
|
1805
|
+
# @param [Google::Apis::RequestOptions] options
|
1806
|
+
# Request-specific options
|
1807
|
+
#
|
1808
|
+
# @yield [result, err] Result & error if block supplied
|
1809
|
+
# @yieldparam result [Google::Apis::DriveV3::TeamDrive] parsed result object
|
1810
|
+
# @yieldparam err [StandardError] error object if request failed
|
1811
|
+
#
|
1812
|
+
# @return [Google::Apis::DriveV3::TeamDrive]
|
1813
|
+
#
|
1814
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1815
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1816
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1817
|
+
def update_teamdrife(team_drive_id, team_drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1818
|
+
command = make_simple_command(:patch, 'teamdrives/{teamDriveId}', options)
|
1819
|
+
command.request_representation = Google::Apis::DriveV3::TeamDrive::Representation
|
1820
|
+
command.request_object = team_drive_object
|
1821
|
+
command.response_representation = Google::Apis::DriveV3::TeamDrive::Representation
|
1822
|
+
command.response_class = Google::Apis::DriveV3::TeamDrive
|
1823
|
+
command.params['teamDriveId'] = team_drive_id unless team_drive_id.nil?
|
1824
|
+
command.query['fields'] = fields unless fields.nil?
|
1825
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1826
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1827
|
+
execute_or_queue_command(command, &block)
|
1828
|
+
end
|
1542
1829
|
|
1543
1830
|
protected
|
1544
1831
|
|