google-apis-drive_v3 0.30.0 → 0.61.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +129 -0
- data/OVERVIEW.md +5 -5
- data/lib/google/apis/drive_v3/classes.rb +1117 -470
- data/lib/google/apis/drive_v3/gem_version.rb +3 -3
- data/lib/google/apis/drive_v3/representations.rb +191 -0
- data/lib/google/apis/drive_v3/service.rb +716 -438
- data/lib/google/apis/drive_v3.rb +9 -4
- metadata +11 -11
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DriveV3
|
18
18
|
# Version of the google-apis-drive_v3 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.61.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.15.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20241206"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -46,6 +46,36 @@ module Google
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
47
47
|
end
|
48
48
|
|
49
|
+
class AccessProposal
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class AccessProposalRoleAndView
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class App
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class AppIcons
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class AppList
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
49
79
|
class Change
|
50
80
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
81
|
|
@@ -220,6 +250,18 @@ module Google
|
|
220
250
|
include Google::Apis::Core::JsonObjectSupport
|
221
251
|
end
|
222
252
|
|
253
|
+
class ListAccessProposalsResponse
|
254
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
255
|
+
|
256
|
+
include Google::Apis::Core::JsonObjectSupport
|
257
|
+
end
|
258
|
+
|
259
|
+
class ListOperationsResponse
|
260
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
261
|
+
|
262
|
+
include Google::Apis::Core::JsonObjectSupport
|
263
|
+
end
|
264
|
+
|
223
265
|
class ModifyLabelsRequest
|
224
266
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
225
267
|
|
@@ -232,6 +274,12 @@ module Google
|
|
232
274
|
include Google::Apis::Core::JsonObjectSupport
|
233
275
|
end
|
234
276
|
|
277
|
+
class Operation
|
278
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
279
|
+
|
280
|
+
include Google::Apis::Core::JsonObjectSupport
|
281
|
+
end
|
282
|
+
|
235
283
|
class Permission
|
236
284
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
237
285
|
|
@@ -268,6 +316,12 @@ module Google
|
|
268
316
|
include Google::Apis::Core::JsonObjectSupport
|
269
317
|
end
|
270
318
|
|
319
|
+
class ResolveAccessProposalRequest
|
320
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
321
|
+
|
322
|
+
include Google::Apis::Core::JsonObjectSupport
|
323
|
+
end
|
324
|
+
|
271
325
|
class Revision
|
272
326
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
273
327
|
|
@@ -286,6 +340,12 @@ module Google
|
|
286
340
|
include Google::Apis::Core::JsonObjectSupport
|
287
341
|
end
|
288
342
|
|
343
|
+
class Status
|
344
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
345
|
+
|
346
|
+
include Google::Apis::Core::JsonObjectSupport
|
347
|
+
end
|
348
|
+
|
289
349
|
class TeamDrive
|
290
350
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
291
351
|
|
@@ -381,6 +441,79 @@ module Google
|
|
381
441
|
end
|
382
442
|
end
|
383
443
|
|
444
|
+
class AccessProposal
|
445
|
+
# @private
|
446
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
447
|
+
property :create_time, as: 'createTime'
|
448
|
+
property :file_id, as: 'fileId'
|
449
|
+
property :proposal_id, as: 'proposalId'
|
450
|
+
property :recipient_email_address, as: 'recipientEmailAddress'
|
451
|
+
property :request_message, as: 'requestMessage'
|
452
|
+
property :requester_email_address, as: 'requesterEmailAddress'
|
453
|
+
collection :roles_and_views, as: 'rolesAndViews', class: Google::Apis::DriveV3::AccessProposalRoleAndView, decorator: Google::Apis::DriveV3::AccessProposalRoleAndView::Representation
|
454
|
+
|
455
|
+
end
|
456
|
+
end
|
457
|
+
|
458
|
+
class AccessProposalRoleAndView
|
459
|
+
# @private
|
460
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
461
|
+
property :role, as: 'role'
|
462
|
+
property :view, as: 'view'
|
463
|
+
end
|
464
|
+
end
|
465
|
+
|
466
|
+
class App
|
467
|
+
# @private
|
468
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
469
|
+
property :authorized, as: 'authorized'
|
470
|
+
property :create_in_folder_template, as: 'createInFolderTemplate'
|
471
|
+
property :create_url, as: 'createUrl'
|
472
|
+
property :has_drive_wide_scope, as: 'hasDriveWideScope'
|
473
|
+
collection :icons, as: 'icons', class: Google::Apis::DriveV3::AppIcons, decorator: Google::Apis::DriveV3::AppIcons::Representation
|
474
|
+
|
475
|
+
property :id, as: 'id'
|
476
|
+
property :installed, as: 'installed'
|
477
|
+
property :kind, as: 'kind'
|
478
|
+
property :long_description, as: 'longDescription'
|
479
|
+
property :name, as: 'name'
|
480
|
+
property :object_type, as: 'objectType'
|
481
|
+
property :open_url_template, as: 'openUrlTemplate'
|
482
|
+
collection :primary_file_extensions, as: 'primaryFileExtensions'
|
483
|
+
collection :primary_mime_types, as: 'primaryMimeTypes'
|
484
|
+
property :product_id, as: 'productId'
|
485
|
+
property :product_url, as: 'productUrl'
|
486
|
+
collection :secondary_file_extensions, as: 'secondaryFileExtensions'
|
487
|
+
collection :secondary_mime_types, as: 'secondaryMimeTypes'
|
488
|
+
property :short_description, as: 'shortDescription'
|
489
|
+
property :supports_create, as: 'supportsCreate'
|
490
|
+
property :supports_import, as: 'supportsImport'
|
491
|
+
property :supports_multi_open, as: 'supportsMultiOpen'
|
492
|
+
property :supports_offline_create, as: 'supportsOfflineCreate'
|
493
|
+
property :use_by_default, as: 'useByDefault'
|
494
|
+
end
|
495
|
+
end
|
496
|
+
|
497
|
+
class AppIcons
|
498
|
+
# @private
|
499
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
500
|
+
property :category, as: 'category'
|
501
|
+
property :icon_url, as: 'iconUrl'
|
502
|
+
property :size, as: 'size'
|
503
|
+
end
|
504
|
+
end
|
505
|
+
|
506
|
+
class AppList
|
507
|
+
# @private
|
508
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
509
|
+
collection :default_app_ids, as: 'defaultAppIds'
|
510
|
+
collection :items, as: 'items', class: Google::Apis::DriveV3::App, decorator: Google::Apis::DriveV3::App::Representation
|
511
|
+
|
512
|
+
property :kind, as: 'kind'
|
513
|
+
property :self_link, as: 'selfLink'
|
514
|
+
end
|
515
|
+
end
|
516
|
+
|
384
517
|
class Change
|
385
518
|
# @private
|
386
519
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -473,12 +606,14 @@ module Google
|
|
473
606
|
class ContentRestriction
|
474
607
|
# @private
|
475
608
|
class Representation < Google::Apis::Core::JsonRepresentation
|
609
|
+
property :owner_restricted, as: 'ownerRestricted'
|
476
610
|
property :read_only, as: 'readOnly'
|
477
611
|
property :reason, as: 'reason'
|
478
612
|
property :restricting_user, as: 'restrictingUser', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation
|
479
613
|
|
480
614
|
property :restriction_time, as: 'restrictionTime', type: DateTime
|
481
615
|
|
616
|
+
property :system_restricted, as: 'systemRestricted'
|
482
617
|
property :type, as: 'type'
|
483
618
|
end
|
484
619
|
end
|
@@ -522,6 +657,7 @@ module Google
|
|
522
657
|
property :can_change_domain_users_only_restriction, as: 'canChangeDomainUsersOnlyRestriction'
|
523
658
|
property :can_change_drive_background, as: 'canChangeDriveBackground'
|
524
659
|
property :can_change_drive_members_only_restriction, as: 'canChangeDriveMembersOnlyRestriction'
|
660
|
+
property :can_change_sharing_folders_requires_organizer_permission_restriction, as: 'canChangeSharingFoldersRequiresOrganizerPermissionRestriction'
|
525
661
|
property :can_comment, as: 'canComment'
|
526
662
|
property :can_copy, as: 'canCopy'
|
527
663
|
property :can_delete_children, as: 'canDeleteChildren'
|
@@ -546,6 +682,7 @@ module Google
|
|
546
682
|
property :copy_requires_writer_permission, as: 'copyRequiresWriterPermission'
|
547
683
|
property :domain_users_only, as: 'domainUsersOnly'
|
548
684
|
property :drive_members_only, as: 'driveMembersOnly'
|
685
|
+
property :sharing_folders_requires_organizer_permission, as: 'sharingFoldersRequiresOrganizerPermission'
|
549
686
|
end
|
550
687
|
end
|
551
688
|
end
|
@@ -665,7 +802,9 @@ module Google
|
|
665
802
|
property :can_list_children, as: 'canListChildren'
|
666
803
|
property :can_modify_content, as: 'canModifyContent'
|
667
804
|
property :can_modify_content_restriction, as: 'canModifyContentRestriction'
|
805
|
+
property :can_modify_editor_content_restriction, as: 'canModifyEditorContentRestriction'
|
668
806
|
property :can_modify_labels, as: 'canModifyLabels'
|
807
|
+
property :can_modify_owner_content_restriction, as: 'canModifyOwnerContentRestriction'
|
669
808
|
property :can_move_children_out_of_drive, as: 'canMoveChildrenOutOfDrive'
|
670
809
|
property :can_move_children_out_of_team_drive, as: 'canMoveChildrenOutOfTeamDrive'
|
671
810
|
property :can_move_children_within_drive, as: 'canMoveChildrenWithinDrive'
|
@@ -681,6 +820,7 @@ module Google
|
|
681
820
|
property :can_read_revisions, as: 'canReadRevisions'
|
682
821
|
property :can_read_team_drive, as: 'canReadTeamDrive'
|
683
822
|
property :can_remove_children, as: 'canRemoveChildren'
|
823
|
+
property :can_remove_content_restriction, as: 'canRemoveContentRestriction'
|
684
824
|
property :can_remove_my_drive_parent, as: 'canRemoveMyDriveParent'
|
685
825
|
property :can_rename, as: 'canRename'
|
686
826
|
property :can_share, as: 'canShare'
|
@@ -862,6 +1002,24 @@ module Google
|
|
862
1002
|
end
|
863
1003
|
end
|
864
1004
|
|
1005
|
+
class ListAccessProposalsResponse
|
1006
|
+
# @private
|
1007
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1008
|
+
collection :access_proposals, as: 'accessProposals', class: Google::Apis::DriveV3::AccessProposal, decorator: Google::Apis::DriveV3::AccessProposal::Representation
|
1009
|
+
|
1010
|
+
property :next_page_token, as: 'nextPageToken'
|
1011
|
+
end
|
1012
|
+
end
|
1013
|
+
|
1014
|
+
class ListOperationsResponse
|
1015
|
+
# @private
|
1016
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1017
|
+
property :next_page_token, as: 'nextPageToken'
|
1018
|
+
collection :operations, as: 'operations', class: Google::Apis::DriveV3::Operation, decorator: Google::Apis::DriveV3::Operation::Representation
|
1019
|
+
|
1020
|
+
end
|
1021
|
+
end
|
1022
|
+
|
865
1023
|
class ModifyLabelsRequest
|
866
1024
|
# @private
|
867
1025
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -880,6 +1038,18 @@ module Google
|
|
880
1038
|
end
|
881
1039
|
end
|
882
1040
|
|
1041
|
+
class Operation
|
1042
|
+
# @private
|
1043
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1044
|
+
property :done, as: 'done'
|
1045
|
+
property :error, as: 'error', class: Google::Apis::DriveV3::Status, decorator: Google::Apis::DriveV3::Status::Representation
|
1046
|
+
|
1047
|
+
hash :metadata, as: 'metadata'
|
1048
|
+
property :name, as: 'name'
|
1049
|
+
hash :response, as: 'response'
|
1050
|
+
end
|
1051
|
+
end
|
1052
|
+
|
883
1053
|
class Permission
|
884
1054
|
# @private
|
885
1055
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -962,6 +1132,16 @@ module Google
|
|
962
1132
|
end
|
963
1133
|
end
|
964
1134
|
|
1135
|
+
class ResolveAccessProposalRequest
|
1136
|
+
# @private
|
1137
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1138
|
+
property :action, as: 'action'
|
1139
|
+
collection :role, as: 'role'
|
1140
|
+
property :send_notification, as: 'sendNotification'
|
1141
|
+
property :view, as: 'view'
|
1142
|
+
end
|
1143
|
+
end
|
1144
|
+
|
965
1145
|
class Revision
|
966
1146
|
# @private
|
967
1147
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1002,6 +1182,15 @@ module Google
|
|
1002
1182
|
end
|
1003
1183
|
end
|
1004
1184
|
|
1185
|
+
class Status
|
1186
|
+
# @private
|
1187
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1188
|
+
property :code, as: 'code'
|
1189
|
+
collection :details, as: 'details'
|
1190
|
+
property :message, as: 'message'
|
1191
|
+
end
|
1192
|
+
end
|
1193
|
+
|
1005
1194
|
class TeamDrive
|
1006
1195
|
# @private
|
1007
1196
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1038,6 +1227,7 @@ module Google
|
|
1038
1227
|
property :can_add_children, as: 'canAddChildren'
|
1039
1228
|
property :can_change_copy_requires_writer_permission_restriction, as: 'canChangeCopyRequiresWriterPermissionRestriction'
|
1040
1229
|
property :can_change_domain_users_only_restriction, as: 'canChangeDomainUsersOnlyRestriction'
|
1230
|
+
property :can_change_sharing_folders_requires_organizer_permission_restriction, as: 'canChangeSharingFoldersRequiresOrganizerPermissionRestriction'
|
1041
1231
|
property :can_change_team_drive_background, as: 'canChangeTeamDriveBackground'
|
1042
1232
|
property :can_change_team_members_only_restriction, as: 'canChangeTeamMembersOnlyRestriction'
|
1043
1233
|
property :can_comment, as: 'canComment'
|
@@ -1064,6 +1254,7 @@ module Google
|
|
1064
1254
|
property :admin_managed_restrictions, as: 'adminManagedRestrictions'
|
1065
1255
|
property :copy_requires_writer_permission, as: 'copyRequiresWriterPermission'
|
1066
1256
|
property :domain_users_only, as: 'domainUsersOnly'
|
1257
|
+
property :sharing_folders_requires_organizer_permission, as: 'sharingFoldersRequiresOrganizerPermission'
|
1067
1258
|
property :team_members_only, as: 'teamMembersOnly'
|
1068
1259
|
end
|
1069
1260
|
end
|