google-apis-drive_v3 0.60.0 → 0.62.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 +9 -0
- data/lib/google/apis/drive_v3/classes.rb +87 -11
- data/lib/google/apis/drive_v3/gem_version.rb +3 -3
- data/lib/google/apis/drive_v3/representations.rb +22 -0
- data/lib/google/apis/drive_v3/service.rb +54 -15
- metadata +4 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1331ed80310f3da5d59a9fcddfe68aee72cb992da9fa87adc57fcfda6760101
|
4
|
+
data.tar.gz: dcac451be428fe145d1197ef006677b1de25197cd7184d6658d6ea65393948c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13dc6a60f623783556f8c76863c8734d22d3fe5b3e181032ca89c30dff5e6de9b9f329559b8fac73710b4755d5fbfc1f2feccc1cedb1327c9cba317f2953526e
|
7
|
+
data.tar.gz: 67b64b3b665eb47d74e0f88d3a3ce64548540fd31d81eb6fbc4adaba430af87f46b916276442554280a7c06d2a1fae3210cfa26a4752bfc4d911c6de0d3d0d61
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-drive_v3
|
2
2
|
|
3
|
+
### v0.62.0 (2025-03-02)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250220
|
6
|
+
* Regenerated using generator version 0.16.0
|
7
|
+
|
8
|
+
### v0.61.0 (2024-12-15)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20241206
|
11
|
+
|
3
12
|
### v0.60.0 (2024-11-24)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20241117
|
@@ -993,6 +993,34 @@ module Google
|
|
993
993
|
end
|
994
994
|
end
|
995
995
|
|
996
|
+
# A restriction for copy and download of the file.
|
997
|
+
class DownloadRestriction
|
998
|
+
include Google::Apis::Core::Hashable
|
999
|
+
|
1000
|
+
# Whether download and copy is restricted for readers.
|
1001
|
+
# Corresponds to the JSON property `restrictedForReaders`
|
1002
|
+
# @return [Boolean]
|
1003
|
+
attr_accessor :restricted_for_readers
|
1004
|
+
alias_method :restricted_for_readers?, :restricted_for_readers
|
1005
|
+
|
1006
|
+
# Whether download and copy is restricted for writers. If true, download is also
|
1007
|
+
# restricted for readers.
|
1008
|
+
# Corresponds to the JSON property `restrictedForWriters`
|
1009
|
+
# @return [Boolean]
|
1010
|
+
attr_accessor :restricted_for_writers
|
1011
|
+
alias_method :restricted_for_writers?, :restricted_for_writers
|
1012
|
+
|
1013
|
+
def initialize(**args)
|
1014
|
+
update!(**args)
|
1015
|
+
end
|
1016
|
+
|
1017
|
+
# Update properties of this object
|
1018
|
+
def update!(**args)
|
1019
|
+
@restricted_for_readers = args[:restricted_for_readers] if args.key?(:restricted_for_readers)
|
1020
|
+
@restricted_for_writers = args[:restricted_for_writers] if args.key?(:restricted_for_writers)
|
1021
|
+
end
|
1022
|
+
end
|
1023
|
+
|
996
1024
|
# Representation of a shared drive. Some resource methods (such as `drives.
|
997
1025
|
# update`) require a `driveId`. Use the `drives.list` method to retrieve the ID
|
998
1026
|
# for a shared drive.
|
@@ -1348,6 +1376,11 @@ module Google
|
|
1348
1376
|
attr_accessor :domain_users_only
|
1349
1377
|
alias_method :domain_users_only?, :domain_users_only
|
1350
1378
|
|
1379
|
+
# A restriction for copy and download of the file.
|
1380
|
+
# Corresponds to the JSON property `downloadRestriction`
|
1381
|
+
# @return [Google::Apis::DriveV3::DownloadRestriction]
|
1382
|
+
attr_accessor :download_restriction
|
1383
|
+
|
1351
1384
|
# Whether access to items inside this shared drive is restricted to its members.
|
1352
1385
|
# Corresponds to the JSON property `driveMembersOnly`
|
1353
1386
|
# @return [Boolean]
|
@@ -1370,6 +1403,7 @@ module Google
|
|
1370
1403
|
@admin_managed_restrictions = args[:admin_managed_restrictions] if args.key?(:admin_managed_restrictions)
|
1371
1404
|
@copy_requires_writer_permission = args[:copy_requires_writer_permission] if args.key?(:copy_requires_writer_permission)
|
1372
1405
|
@domain_users_only = args[:domain_users_only] if args.key?(:domain_users_only)
|
1406
|
+
@download_restriction = args[:download_restriction] if args.key?(:download_restriction)
|
1373
1407
|
@drive_members_only = args[:drive_members_only] if args.key?(:drive_members_only)
|
1374
1408
|
@sharing_folders_requires_organizer_permission = args[:sharing_folders_requires_organizer_permission] if args.key?(:sharing_folders_requires_organizer_permission)
|
1375
1409
|
end
|
@@ -1540,6 +1574,13 @@ module Google
|
|
1540
1574
|
# @return [Google::Apis::DriveV3::File::ImageMediaMetadata]
|
1541
1575
|
attr_accessor :image_media_metadata
|
1542
1576
|
|
1577
|
+
# Whether this file has inherited permissions disabled. Inherited permissions
|
1578
|
+
# are enabled by default.
|
1579
|
+
# Corresponds to the JSON property `inheritedPermissionsDisabled`
|
1580
|
+
# @return [Boolean]
|
1581
|
+
attr_accessor :inherited_permissions_disabled
|
1582
|
+
alias_method :inherited_permissions_disabled?, :inherited_permissions_disabled
|
1583
|
+
|
1543
1584
|
# Output only. Whether the file was created or opened by the requesting app.
|
1544
1585
|
# Corresponds to the JSON property `isAppAuthorized`
|
1545
1586
|
# @return [Boolean]
|
@@ -1837,6 +1878,7 @@ module Google
|
|
1837
1878
|
@icon_link = args[:icon_link] if args.key?(:icon_link)
|
1838
1879
|
@id = args[:id] if args.key?(:id)
|
1839
1880
|
@image_media_metadata = args[:image_media_metadata] if args.key?(:image_media_metadata)
|
1881
|
+
@inherited_permissions_disabled = args[:inherited_permissions_disabled] if args.key?(:inherited_permissions_disabled)
|
1840
1882
|
@is_app_authorized = args[:is_app_authorized] if args.key?(:is_app_authorized)
|
1841
1883
|
@kind = args[:kind] if args.key?(:kind)
|
1842
1884
|
@label_info = args[:label_info] if args.key?(:label_info)
|
@@ -1965,6 +2007,12 @@ module Google
|
|
1965
2007
|
attr_accessor :can_delete_children
|
1966
2008
|
alias_method :can_delete_children?, :can_delete_children
|
1967
2009
|
|
2010
|
+
# Whether a user can disable inherited permissions.
|
2011
|
+
# Corresponds to the JSON property `canDisableInheritedPermissions`
|
2012
|
+
# @return [Boolean]
|
2013
|
+
attr_accessor :can_disable_inherited_permissions
|
2014
|
+
alias_method :can_disable_inherited_permissions?, :can_disable_inherited_permissions
|
2015
|
+
|
1968
2016
|
# Output only. Whether the current user can download this file.
|
1969
2017
|
# Corresponds to the JSON property `canDownload`
|
1970
2018
|
# @return [Boolean]
|
@@ -1979,6 +2027,12 @@ module Google
|
|
1979
2027
|
attr_accessor :can_edit
|
1980
2028
|
alias_method :can_edit?, :can_edit
|
1981
2029
|
|
2030
|
+
# Whether a user can re-enable inherited permissions.
|
2031
|
+
# Corresponds to the JSON property `canEnableInheritedPermissions`
|
2032
|
+
# @return [Boolean]
|
2033
|
+
attr_accessor :can_enable_inherited_permissions
|
2034
|
+
alias_method :can_enable_inherited_permissions?, :can_enable_inherited_permissions
|
2035
|
+
|
1982
2036
|
# Output only. Whether the current user can list the children of this folder.
|
1983
2037
|
# This is always false when the item is not a folder.
|
1984
2038
|
# Corresponds to the JSON property `canListChildren`
|
@@ -2189,8 +2243,10 @@ module Google
|
|
2189
2243
|
@can_copy = args[:can_copy] if args.key?(:can_copy)
|
2190
2244
|
@can_delete = args[:can_delete] if args.key?(:can_delete)
|
2191
2245
|
@can_delete_children = args[:can_delete_children] if args.key?(:can_delete_children)
|
2246
|
+
@can_disable_inherited_permissions = args[:can_disable_inherited_permissions] if args.key?(:can_disable_inherited_permissions)
|
2192
2247
|
@can_download = args[:can_download] if args.key?(:can_download)
|
2193
2248
|
@can_edit = args[:can_edit] if args.key?(:can_edit)
|
2249
|
+
@can_enable_inherited_permissions = args[:can_enable_inherited_permissions] if args.key?(:can_enable_inherited_permissions)
|
2194
2250
|
@can_list_children = args[:can_list_children] if args.key?(:can_list_children)
|
2195
2251
|
@can_modify_content = args[:can_modify_content] if args.key?(:can_modify_content)
|
2196
2252
|
@can_modify_content_restriction = args[:can_modify_content_restriction] if args.key?(:can_modify_content_restriction)
|
@@ -3054,9 +3110,12 @@ module Google
|
|
3054
3110
|
end
|
3055
3111
|
|
3056
3112
|
# A permission for a file. A permission grants a user, group, domain, or the
|
3057
|
-
# world access to a file or a folder hierarchy.
|
3058
|
-
#
|
3059
|
-
#
|
3113
|
+
# world access to a file or a folder hierarchy. By default, permissions requests
|
3114
|
+
# only return a subset of fields. Permission kind, ID, type, and role are always
|
3115
|
+
# returned. To retrieve specific fields, see https://developers.google.com/drive/
|
3116
|
+
# api/guides/fields-parameter. Some resource methods (such as `permissions.
|
3117
|
+
# update`) require a `permissionId`. Use the `permissions.list` method to
|
3118
|
+
# retrieve the ID for a file, folder, or shared drive.
|
3060
3119
|
class Permission
|
3061
3120
|
include Google::Apis::Core::Hashable
|
3062
3121
|
|
@@ -3109,6 +3168,13 @@ module Google
|
|
3109
3168
|
# @return [String]
|
3110
3169
|
attr_accessor :id
|
3111
3170
|
|
3171
|
+
# When true, only organizers, owners, and users with permissions added directly
|
3172
|
+
# on the item can access it.
|
3173
|
+
# Corresponds to the JSON property `inheritedPermissionsDisabled`
|
3174
|
+
# @return [Boolean]
|
3175
|
+
attr_accessor :inherited_permissions_disabled
|
3176
|
+
alias_method :inherited_permissions_disabled?, :inherited_permissions_disabled
|
3177
|
+
|
3112
3178
|
# Output only. Identifies what kind of resource this is. Value: the fixed string
|
3113
3179
|
# `"drive#permission"`.
|
3114
3180
|
# Corresponds to the JSON property `kind`
|
@@ -3122,9 +3188,8 @@ module Google
|
|
3122
3188
|
attr_accessor :pending_owner
|
3123
3189
|
alias_method :pending_owner?, :pending_owner
|
3124
3190
|
|
3125
|
-
# Output only. Details of whether the permissions on this
|
3126
|
-
#
|
3127
|
-
# present only for shared drive items.
|
3191
|
+
# Output only. Details of whether the permissions on this item are inherited or
|
3192
|
+
# directly on this item.
|
3128
3193
|
# Corresponds to the JSON property `permissionDetails`
|
3129
3194
|
# @return [Array<Google::Apis::DriveV3::Permission::PermissionDetail>]
|
3130
3195
|
attr_accessor :permission_details
|
@@ -3156,7 +3221,11 @@ module Google
|
|
3156
3221
|
attr_accessor :type
|
3157
3222
|
|
3158
3223
|
# Indicates the view for this permission. Only populated for permissions that
|
3159
|
-
# belong to a view.
|
3224
|
+
# belong to a view. published and metadata are the only supported values. -
|
3225
|
+
# published: The permission's role is published_reader. - metadata: The item is
|
3226
|
+
# only visible to the metadata view because the item has limited access and the
|
3227
|
+
# scope has at least read access to the parent. Note: The metadata view is
|
3228
|
+
# currently only supported on folders.
|
3160
3229
|
# Corresponds to the JSON property `view`
|
3161
3230
|
# @return [String]
|
3162
3231
|
attr_accessor :view
|
@@ -3174,6 +3243,7 @@ module Google
|
|
3174
3243
|
@email_address = args[:email_address] if args.key?(:email_address)
|
3175
3244
|
@expiration_time = args[:expiration_time] if args.key?(:expiration_time)
|
3176
3245
|
@id = args[:id] if args.key?(:id)
|
3246
|
+
@inherited_permissions_disabled = args[:inherited_permissions_disabled] if args.key?(:inherited_permissions_disabled)
|
3177
3247
|
@kind = args[:kind] if args.key?(:kind)
|
3178
3248
|
@pending_owner = args[:pending_owner] if args.key?(:pending_owner)
|
3179
3249
|
@permission_details = args[:permission_details] if args.key?(:permission_details)
|
@@ -3196,7 +3266,7 @@ module Google
|
|
3196
3266
|
alias_method :inherited?, :inherited
|
3197
3267
|
|
3198
3268
|
# Output only. The ID of the item from which this permission is inherited. This
|
3199
|
-
# is
|
3269
|
+
# is only populated for items in shared drives.
|
3200
3270
|
# Corresponds to the JSON property `inheritedFrom`
|
3201
3271
|
# @return [String]
|
3202
3272
|
attr_accessor :inherited_from
|
@@ -3208,7 +3278,7 @@ module Google
|
|
3208
3278
|
attr_accessor :permission_type
|
3209
3279
|
|
3210
3280
|
# Output only. The primary role for this user. While new values may be added in
|
3211
|
-
# the future, the following are currently possible: * `organizer` * `
|
3281
|
+
# the future, the following are currently possible: * `owner` * `organizer` * `
|
3212
3282
|
# fileOrganizer` * `writer` * `commenter` * `reader`
|
3213
3283
|
# Corresponds to the JSON property `role`
|
3214
3284
|
# @return [String]
|
@@ -3529,8 +3599,8 @@ module Google
|
|
3529
3599
|
attr_accessor :published
|
3530
3600
|
alias_method :published?, :published
|
3531
3601
|
|
3532
|
-
# Output only. A link to the published revision. This is only populated for
|
3533
|
-
#
|
3602
|
+
# Output only. A link to the published revision. This is only populated for Docs
|
3603
|
+
# Editors files.
|
3534
3604
|
# Corresponds to the JSON property `publishedLink`
|
3535
3605
|
# @return [String]
|
3536
3606
|
attr_accessor :published_link
|
@@ -4013,6 +4083,11 @@ module Google
|
|
4013
4083
|
attr_accessor :domain_users_only
|
4014
4084
|
alias_method :domain_users_only?, :domain_users_only
|
4015
4085
|
|
4086
|
+
# A restriction for copy and download of the file.
|
4087
|
+
# Corresponds to the JSON property `downloadRestriction`
|
4088
|
+
# @return [Google::Apis::DriveV3::DownloadRestriction]
|
4089
|
+
attr_accessor :download_restriction
|
4090
|
+
|
4016
4091
|
# If true, only users with the organizer role can share folders. If false, users
|
4017
4092
|
# with either the organizer role or the file organizer role can share folders.
|
4018
4093
|
# Corresponds to the JSON property `sharingFoldersRequiresOrganizerPermission`
|
@@ -4036,6 +4111,7 @@ module Google
|
|
4036
4111
|
@admin_managed_restrictions = args[:admin_managed_restrictions] if args.key?(:admin_managed_restrictions)
|
4037
4112
|
@copy_requires_writer_permission = args[:copy_requires_writer_permission] if args.key?(:copy_requires_writer_permission)
|
4038
4113
|
@domain_users_only = args[:domain_users_only] if args.key?(:domain_users_only)
|
4114
|
+
@download_restriction = args[:download_restriction] if args.key?(:download_restriction)
|
4039
4115
|
@sharing_folders_requires_organizer_permission = args[:sharing_folders_requires_organizer_permission] if args.key?(:sharing_folders_requires_organizer_permission)
|
4040
4116
|
@team_members_only = args[:team_members_only] if args.key?(:team_members_only)
|
4041
4117
|
end
|
@@ -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.62.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.16.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250220"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -118,6 +118,12 @@ module Google
|
|
118
118
|
include Google::Apis::Core::JsonObjectSupport
|
119
119
|
end
|
120
120
|
|
121
|
+
class DownloadRestriction
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
121
127
|
class Drive
|
122
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
129
|
|
@@ -618,6 +624,14 @@ module Google
|
|
618
624
|
end
|
619
625
|
end
|
620
626
|
|
627
|
+
class DownloadRestriction
|
628
|
+
# @private
|
629
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
630
|
+
property :restricted_for_readers, as: 'restrictedForReaders'
|
631
|
+
property :restricted_for_writers, as: 'restrictedForWriters'
|
632
|
+
end
|
633
|
+
end
|
634
|
+
|
621
635
|
class Drive
|
622
636
|
# @private
|
623
637
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -681,6 +695,8 @@ module Google
|
|
681
695
|
property :admin_managed_restrictions, as: 'adminManagedRestrictions'
|
682
696
|
property :copy_requires_writer_permission, as: 'copyRequiresWriterPermission'
|
683
697
|
property :domain_users_only, as: 'domainUsersOnly'
|
698
|
+
property :download_restriction, as: 'downloadRestriction', class: Google::Apis::DriveV3::DownloadRestriction, decorator: Google::Apis::DriveV3::DownloadRestriction::Representation
|
699
|
+
|
684
700
|
property :drive_members_only, as: 'driveMembersOnly'
|
685
701
|
property :sharing_folders_requires_organizer_permission, as: 'sharingFoldersRequiresOrganizerPermission'
|
686
702
|
end
|
@@ -724,6 +740,7 @@ module Google
|
|
724
740
|
property :id, as: 'id'
|
725
741
|
property :image_media_metadata, as: 'imageMediaMetadata', class: Google::Apis::DriveV3::File::ImageMediaMetadata, decorator: Google::Apis::DriveV3::File::ImageMediaMetadata::Representation
|
726
742
|
|
743
|
+
property :inherited_permissions_disabled, as: 'inheritedPermissionsDisabled'
|
727
744
|
property :is_app_authorized, as: 'isAppAuthorized'
|
728
745
|
property :kind, as: 'kind'
|
729
746
|
property :label_info, as: 'labelInfo', class: Google::Apis::DriveV3::File::LabelInfo, decorator: Google::Apis::DriveV3::File::LabelInfo::Representation
|
@@ -797,8 +814,10 @@ module Google
|
|
797
814
|
property :can_copy, as: 'canCopy'
|
798
815
|
property :can_delete, as: 'canDelete'
|
799
816
|
property :can_delete_children, as: 'canDeleteChildren'
|
817
|
+
property :can_disable_inherited_permissions, as: 'canDisableInheritedPermissions'
|
800
818
|
property :can_download, as: 'canDownload'
|
801
819
|
property :can_edit, as: 'canEdit'
|
820
|
+
property :can_enable_inherited_permissions, as: 'canEnableInheritedPermissions'
|
802
821
|
property :can_list_children, as: 'canListChildren'
|
803
822
|
property :can_modify_content, as: 'canModifyContent'
|
804
823
|
property :can_modify_content_restriction, as: 'canModifyContentRestriction'
|
@@ -1061,6 +1080,7 @@ module Google
|
|
1061
1080
|
property :expiration_time, as: 'expirationTime', type: DateTime
|
1062
1081
|
|
1063
1082
|
property :id, as: 'id'
|
1083
|
+
property :inherited_permissions_disabled, as: 'inheritedPermissionsDisabled'
|
1064
1084
|
property :kind, as: 'kind'
|
1065
1085
|
property :pending_owner, as: 'pendingOwner'
|
1066
1086
|
collection :permission_details, as: 'permissionDetails', class: Google::Apis::DriveV3::Permission::PermissionDetail, decorator: Google::Apis::DriveV3::Permission::PermissionDetail::Representation
|
@@ -1254,6 +1274,8 @@ module Google
|
|
1254
1274
|
property :admin_managed_restrictions, as: 'adminManagedRestrictions'
|
1255
1275
|
property :copy_requires_writer_permission, as: 'copyRequiresWriterPermission'
|
1256
1276
|
property :domain_users_only, as: 'domainUsersOnly'
|
1277
|
+
property :download_restriction, as: 'downloadRestriction', class: Google::Apis::DriveV3::DownloadRestriction, decorator: Google::Apis::DriveV3::DownloadRestriction::Representation
|
1278
|
+
|
1257
1279
|
property :sharing_folders_requires_organizer_permission, as: 'sharingFoldersRequiresOrganizerPermission'
|
1258
1280
|
property :team_members_only, as: 'teamMembersOnly'
|
1259
1281
|
end
|
@@ -52,6 +52,10 @@ module Google
|
|
52
52
|
end
|
53
53
|
|
54
54
|
# Gets information about the user, the user's Drive, and system capabilities.
|
55
|
+
# For more information, see [Return user info](https://developers.google.com/
|
56
|
+
# drive/api/guides/user-info). Required: The `fields` parameter must be set. To
|
57
|
+
# return the exact fields you need, see [Return specific fields](https://
|
58
|
+
# developers.google.com/drive/api/guides/fields-parameter).
|
55
59
|
# @param [String] fields
|
56
60
|
# Selector specifying which fields to include in a partial response.
|
57
61
|
# @param [String] quota_user
|
@@ -182,7 +186,8 @@ module Google
|
|
182
186
|
execute_or_queue_command(command, &block)
|
183
187
|
end
|
184
188
|
|
185
|
-
# Gets a specific app.
|
189
|
+
# Gets a specific app. For more information, see [Return user info](https://
|
190
|
+
# developers.google.com/drive/api/guides/user-info).
|
186
191
|
# @param [String] app_id
|
187
192
|
# The ID of the app.
|
188
193
|
# @param [String] fields
|
@@ -212,7 +217,8 @@ module Google
|
|
212
217
|
execute_or_queue_command(command, &block)
|
213
218
|
end
|
214
219
|
|
215
|
-
# Lists a user's installed apps.
|
220
|
+
# Lists a user's installed apps. For more information, see [Return user info](
|
221
|
+
# https://developers.google.com/drive/api/guides/user-info).
|
216
222
|
# @param [String] app_filter_extensions
|
217
223
|
# A comma-separated list of file extensions to limit returned results. All
|
218
224
|
# results within the given app query scope which can open any of the given file
|
@@ -255,7 +261,9 @@ module Google
|
|
255
261
|
execute_or_queue_command(command, &block)
|
256
262
|
end
|
257
263
|
|
258
|
-
# Gets the starting pageToken for listing future changes.
|
264
|
+
# Gets the starting pageToken for listing future changes. For more information,
|
265
|
+
# see [Retrieve changes](https://developers.google.com/drive/api/guides/manage-
|
266
|
+
# changes).
|
259
267
|
# @param [String] drive_id
|
260
268
|
# The ID of the shared drive for which the starting pageToken for listing future
|
261
269
|
# changes from that shared drive will be returned.
|
@@ -295,7 +303,9 @@ module Google
|
|
295
303
|
execute_or_queue_command(command, &block)
|
296
304
|
end
|
297
305
|
|
298
|
-
# Lists the changes for a user or shared drive.
|
306
|
+
# Lists the changes for a user or shared drive. For more information, see [
|
307
|
+
# Retrieve changes](https://developers.google.com/drive/api/guides/manage-
|
308
|
+
# changes).
|
299
309
|
# @param [String] page_token
|
300
310
|
# The token for continuing a previous list request on the next page. This should
|
301
311
|
# be set to the value of 'nextPageToken' from the previous response or to the
|
@@ -377,7 +387,8 @@ module Google
|
|
377
387
|
execute_or_queue_command(command, &block)
|
378
388
|
end
|
379
389
|
|
380
|
-
# Subscribes to changes for a user.
|
390
|
+
# Subscribes to changes for a user. For more information, see [Notifications for
|
391
|
+
# resource changes](https://developers.google.com/drive/api/guides/push).
|
381
392
|
# @param [String] page_token
|
382
393
|
# The token for continuing a previous list request on the next page. This should
|
383
394
|
# be set to the value of 'nextPageToken' from the previous response or to the
|
@@ -462,7 +473,9 @@ module Google
|
|
462
473
|
execute_or_queue_command(command, &block)
|
463
474
|
end
|
464
475
|
|
465
|
-
# Stops watching resources through this channel.
|
476
|
+
# Stops watching resources through this channel. For more information, see [
|
477
|
+
# Notifications for resource changes](https://developers.google.com/drive/api/
|
478
|
+
# guides/push).
|
466
479
|
# @param [Google::Apis::DriveV3::Channel] channel_object
|
467
480
|
# @param [String] fields
|
468
481
|
# Selector specifying which fields to include in a partial response.
|
@@ -490,7 +503,11 @@ module Google
|
|
490
503
|
execute_or_queue_command(command, &block)
|
491
504
|
end
|
492
505
|
|
493
|
-
# Creates a comment on a file.
|
506
|
+
# Creates a comment on a file. For more information, see [Manage comments and
|
507
|
+
# replies](https://developers.google.com/drive/api/guides/manage-comments).
|
508
|
+
# Required: The `fields` parameter must be set. To return the exact fields you
|
509
|
+
# need, see [Return specific fields](https://developers.google.com/drive/api/
|
510
|
+
# guides/fields-parameter).
|
494
511
|
# @param [String] file_id
|
495
512
|
# The ID of the file.
|
496
513
|
# @param [Google::Apis::DriveV3::Comment] comment_object
|
@@ -523,7 +540,11 @@ module Google
|
|
523
540
|
execute_or_queue_command(command, &block)
|
524
541
|
end
|
525
542
|
|
526
|
-
# Deletes a comment.
|
543
|
+
# Deletes a comment. For more information, see [Manage comments and replies](
|
544
|
+
# https://developers.google.com/drive/api/guides/manage-comments). Required: The
|
545
|
+
# `fields` parameter must be set. To return the exact fields you need, see [
|
546
|
+
# Return specific fields](https://developers.google.com/drive/api/guides/fields-
|
547
|
+
# parameter).
|
527
548
|
# @param [String] file_id
|
528
549
|
# The ID of the file.
|
529
550
|
# @param [String] comment_id
|
@@ -554,7 +575,11 @@ module Google
|
|
554
575
|
execute_or_queue_command(command, &block)
|
555
576
|
end
|
556
577
|
|
557
|
-
# Gets a comment by ID.
|
578
|
+
# Gets a comment by ID. For more information, see [Manage comments and replies](
|
579
|
+
# https://developers.google.com/drive/api/guides/manage-comments). Required: The
|
580
|
+
# `fields` parameter must be set. To return the exact fields you need, see [
|
581
|
+
# Return specific fields](https://developers.google.com/drive/api/guides/fields-
|
582
|
+
# parameter).
|
558
583
|
# @param [String] file_id
|
559
584
|
# The ID of the file.
|
560
585
|
# @param [String] comment_id
|
@@ -591,7 +616,11 @@ module Google
|
|
591
616
|
execute_or_queue_command(command, &block)
|
592
617
|
end
|
593
618
|
|
594
|
-
# Lists a file's comments.
|
619
|
+
# Lists a file's comments. For more information, see [Manage comments and
|
620
|
+
# replies](https://developers.google.com/drive/api/guides/manage-comments).
|
621
|
+
# Required: The `fields` parameter must be set. To return the exact fields you
|
622
|
+
# need, see [Return specific fields](https://developers.google.com/drive/api/
|
623
|
+
# guides/fields-parameter).
|
595
624
|
# @param [String] file_id
|
596
625
|
# The ID of the file.
|
597
626
|
# @param [Boolean] include_deleted
|
@@ -636,7 +665,11 @@ module Google
|
|
636
665
|
execute_or_queue_command(command, &block)
|
637
666
|
end
|
638
667
|
|
639
|
-
# Updates a comment with patch semantics.
|
668
|
+
# Updates a comment with patch semantics. For more information, see [Manage
|
669
|
+
# comments and replies](https://developers.google.com/drive/api/guides/manage-
|
670
|
+
# comments). Required: The `fields` parameter must be set. To return the exact
|
671
|
+
# fields you need, see [Return specific fields](https://developers.google.com/
|
672
|
+
# drive/api/guides/fields-parameter).
|
640
673
|
# @param [String] file_id
|
641
674
|
# The ID of the file.
|
642
675
|
# @param [String] comment_id
|
@@ -1676,7 +1709,7 @@ module Google
|
|
1676
1709
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1677
1710
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1678
1711
|
def cancel_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
1679
|
-
command = make_simple_command(:post, '
|
1712
|
+
command = make_simple_command(:post, 'operations/{name}:cancel', options)
|
1680
1713
|
command.params['name'] = name unless name.nil?
|
1681
1714
|
command.query['fields'] = fields unless fields.nil?
|
1682
1715
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -1707,7 +1740,7 @@ module Google
|
|
1707
1740
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1708
1741
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1709
1742
|
def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
1710
|
-
command = make_simple_command(:delete, '
|
1743
|
+
command = make_simple_command(:delete, 'operations/{name}', options)
|
1711
1744
|
command.params['name'] = name unless name.nil?
|
1712
1745
|
command.query['fields'] = fields unless fields.nil?
|
1713
1746
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -1860,6 +1893,8 @@ module Google
|
|
1860
1893
|
# The ID of the file or shared drive.
|
1861
1894
|
# @param [String] permission_id
|
1862
1895
|
# The ID of the permission.
|
1896
|
+
# @param [Boolean] enforce_expansive_access
|
1897
|
+
# Whether the request should enforce expansive access rules.
|
1863
1898
|
# @param [Boolean] supports_all_drives
|
1864
1899
|
# Whether the requesting application supports both My Drives and shared drives.
|
1865
1900
|
# @param [Boolean] supports_team_drives
|
@@ -1886,10 +1921,11 @@ module Google
|
|
1886
1921
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1887
1922
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1888
1923
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1889
|
-
def delete_permission(file_id, permission_id, supports_all_drives: nil, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1924
|
+
def delete_permission(file_id, permission_id, enforce_expansive_access: nil, supports_all_drives: nil, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1890
1925
|
command = make_simple_command(:delete, 'files/{fileId}/permissions/{permissionId}', options)
|
1891
1926
|
command.params['fileId'] = file_id unless file_id.nil?
|
1892
1927
|
command.params['permissionId'] = permission_id unless permission_id.nil?
|
1928
|
+
command.query['enforceExpansiveAccess'] = enforce_expansive_access unless enforce_expansive_access.nil?
|
1893
1929
|
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
1894
1930
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
1895
1931
|
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
@@ -2005,6 +2041,8 @@ module Google
|
|
2005
2041
|
# @param [String] permission_id
|
2006
2042
|
# The ID of the permission.
|
2007
2043
|
# @param [Google::Apis::DriveV3::Permission] permission_object
|
2044
|
+
# @param [Boolean] enforce_expansive_access
|
2045
|
+
# Whether the request should enforce expansive access rules.
|
2008
2046
|
# @param [Boolean] remove_expiration
|
2009
2047
|
# Whether to remove the expiration date.
|
2010
2048
|
# @param [Boolean] supports_all_drives
|
@@ -2037,7 +2075,7 @@ module Google
|
|
2037
2075
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2038
2076
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2039
2077
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2040
|
-
def update_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, supports_all_drives: nil, supports_team_drives: nil, transfer_ownership: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2078
|
+
def update_permission(file_id, permission_id, permission_object = nil, enforce_expansive_access: nil, remove_expiration: nil, supports_all_drives: nil, supports_team_drives: nil, transfer_ownership: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2041
2079
|
command = make_simple_command(:patch, 'files/{fileId}/permissions/{permissionId}', options)
|
2042
2080
|
command.request_representation = Google::Apis::DriveV3::Permission::Representation
|
2043
2081
|
command.request_object = permission_object
|
@@ -2045,6 +2083,7 @@ module Google
|
|
2045
2083
|
command.response_class = Google::Apis::DriveV3::Permission
|
2046
2084
|
command.params['fileId'] = file_id unless file_id.nil?
|
2047
2085
|
command.params['permissionId'] = permission_id unless permission_id.nil?
|
2086
|
+
command.query['enforceExpansiveAccess'] = enforce_expansive_access unless enforce_expansive_access.nil?
|
2048
2087
|
command.query['removeExpiration'] = remove_expiration unless remove_expiration.nil?
|
2049
2088
|
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
2050
2089
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-drive_v3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.62.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-03-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: google-apis-core
|
@@ -58,9 +57,8 @@ licenses:
|
|
58
57
|
metadata:
|
59
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-drive_v3/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.62.0
|
62
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-drive_v3
|
63
|
-
post_install_message:
|
64
62
|
rdoc_options: []
|
65
63
|
require_paths:
|
66
64
|
- lib
|
@@ -75,8 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
73
|
- !ruby/object:Gem::Version
|
76
74
|
version: '0'
|
77
75
|
requirements: []
|
78
|
-
rubygems_version: 3.5
|
79
|
-
signing_key:
|
76
|
+
rubygems_version: 3.6.5
|
80
77
|
specification_version: 4
|
81
78
|
summary: Simple REST client for Google Drive API V3
|
82
79
|
test_files: []
|