google-apis-drive_v3 0.61.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
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,10 @@
|
|
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
|
+
|
3
8
|
### v0.61.0 (2024-12-15)
|
4
9
|
|
5
10
|
* Regenerated from discovery document revision 20241206
|
@@ -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)
|
@@ -3112,6 +3168,13 @@ module Google
|
|
3112
3168
|
# @return [String]
|
3113
3169
|
attr_accessor :id
|
3114
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
|
+
|
3115
3178
|
# Output only. Identifies what kind of resource this is. Value: the fixed string
|
3116
3179
|
# `"drive#permission"`.
|
3117
3180
|
# Corresponds to the JSON property `kind`
|
@@ -3125,9 +3188,8 @@ module Google
|
|
3125
3188
|
attr_accessor :pending_owner
|
3126
3189
|
alias_method :pending_owner?, :pending_owner
|
3127
3190
|
|
3128
|
-
# Output only. Details of whether the permissions on this
|
3129
|
-
#
|
3130
|
-
# 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.
|
3131
3193
|
# Corresponds to the JSON property `permissionDetails`
|
3132
3194
|
# @return [Array<Google::Apis::DriveV3::Permission::PermissionDetail>]
|
3133
3195
|
attr_accessor :permission_details
|
@@ -3159,7 +3221,11 @@ module Google
|
|
3159
3221
|
attr_accessor :type
|
3160
3222
|
|
3161
3223
|
# Indicates the view for this permission. Only populated for permissions that
|
3162
|
-
# 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.
|
3163
3229
|
# Corresponds to the JSON property `view`
|
3164
3230
|
# @return [String]
|
3165
3231
|
attr_accessor :view
|
@@ -3177,6 +3243,7 @@ module Google
|
|
3177
3243
|
@email_address = args[:email_address] if args.key?(:email_address)
|
3178
3244
|
@expiration_time = args[:expiration_time] if args.key?(:expiration_time)
|
3179
3245
|
@id = args[:id] if args.key?(:id)
|
3246
|
+
@inherited_permissions_disabled = args[:inherited_permissions_disabled] if args.key?(:inherited_permissions_disabled)
|
3180
3247
|
@kind = args[:kind] if args.key?(:kind)
|
3181
3248
|
@pending_owner = args[:pending_owner] if args.key?(:pending_owner)
|
3182
3249
|
@permission_details = args[:permission_details] if args.key?(:permission_details)
|
@@ -3199,7 +3266,7 @@ module Google
|
|
3199
3266
|
alias_method :inherited?, :inherited
|
3200
3267
|
|
3201
3268
|
# Output only. The ID of the item from which this permission is inherited. This
|
3202
|
-
# is
|
3269
|
+
# is only populated for items in shared drives.
|
3203
3270
|
# Corresponds to the JSON property `inheritedFrom`
|
3204
3271
|
# @return [String]
|
3205
3272
|
attr_accessor :inherited_from
|
@@ -3211,7 +3278,7 @@ module Google
|
|
3211
3278
|
attr_accessor :permission_type
|
3212
3279
|
|
3213
3280
|
# Output only. The primary role for this user. While new values may be added in
|
3214
|
-
# the future, the following are currently possible: * `organizer` * `
|
3281
|
+
# the future, the following are currently possible: * `owner` * `organizer` * `
|
3215
3282
|
# fileOrganizer` * `writer` * `commenter` * `reader`
|
3216
3283
|
# Corresponds to the JSON property `role`
|
3217
3284
|
# @return [String]
|
@@ -3532,8 +3599,8 @@ module Google
|
|
3532
3599
|
attr_accessor :published
|
3533
3600
|
alias_method :published?, :published
|
3534
3601
|
|
3535
|
-
# Output only. A link to the published revision. This is only populated for
|
3536
|
-
#
|
3602
|
+
# Output only. A link to the published revision. This is only populated for Docs
|
3603
|
+
# Editors files.
|
3537
3604
|
# Corresponds to the JSON property `publishedLink`
|
3538
3605
|
# @return [String]
|
3539
3606
|
attr_accessor :published_link
|
@@ -4016,6 +4083,11 @@ module Google
|
|
4016
4083
|
attr_accessor :domain_users_only
|
4017
4084
|
alias_method :domain_users_only?, :domain_users_only
|
4018
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
|
+
|
4019
4091
|
# If true, only users with the organizer role can share folders. If false, users
|
4020
4092
|
# with either the organizer role or the file organizer role can share folders.
|
4021
4093
|
# Corresponds to the JSON property `sharingFoldersRequiresOrganizerPermission`
|
@@ -4039,6 +4111,7 @@ module Google
|
|
4039
4111
|
@admin_managed_restrictions = args[:admin_managed_restrictions] if args.key?(:admin_managed_restrictions)
|
4040
4112
|
@copy_requires_writer_permission = args[:copy_requires_writer_permission] if args.key?(:copy_requires_writer_permission)
|
4041
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)
|
4042
4115
|
@sharing_folders_requires_organizer_permission = args[:sharing_folders_requires_organizer_permission] if args.key?(:sharing_folders_requires_organizer_permission)
|
4043
4116
|
@team_members_only = args[:team_members_only] if args.key?(:team_members_only)
|
4044
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
|
@@ -1709,7 +1709,7 @@ module Google
|
|
1709
1709
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1710
1710
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1711
1711
|
def cancel_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
1712
|
-
command = make_simple_command(:post, '
|
1712
|
+
command = make_simple_command(:post, 'operations/{name}:cancel', options)
|
1713
1713
|
command.params['name'] = name unless name.nil?
|
1714
1714
|
command.query['fields'] = fields unless fields.nil?
|
1715
1715
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -1740,7 +1740,7 @@ module Google
|
|
1740
1740
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1741
1741
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1742
1742
|
def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
1743
|
-
command = make_simple_command(:delete, '
|
1743
|
+
command = make_simple_command(:delete, 'operations/{name}', options)
|
1744
1744
|
command.params['name'] = name unless name.nil?
|
1745
1745
|
command.query['fields'] = fields unless fields.nil?
|
1746
1746
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -1893,6 +1893,8 @@ module Google
|
|
1893
1893
|
# The ID of the file or shared drive.
|
1894
1894
|
# @param [String] permission_id
|
1895
1895
|
# The ID of the permission.
|
1896
|
+
# @param [Boolean] enforce_expansive_access
|
1897
|
+
# Whether the request should enforce expansive access rules.
|
1896
1898
|
# @param [Boolean] supports_all_drives
|
1897
1899
|
# Whether the requesting application supports both My Drives and shared drives.
|
1898
1900
|
# @param [Boolean] supports_team_drives
|
@@ -1919,10 +1921,11 @@ module Google
|
|
1919
1921
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1920
1922
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1921
1923
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1922
|
-
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)
|
1923
1925
|
command = make_simple_command(:delete, 'files/{fileId}/permissions/{permissionId}', options)
|
1924
1926
|
command.params['fileId'] = file_id unless file_id.nil?
|
1925
1927
|
command.params['permissionId'] = permission_id unless permission_id.nil?
|
1928
|
+
command.query['enforceExpansiveAccess'] = enforce_expansive_access unless enforce_expansive_access.nil?
|
1926
1929
|
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
1927
1930
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
1928
1931
|
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
@@ -2038,6 +2041,8 @@ module Google
|
|
2038
2041
|
# @param [String] permission_id
|
2039
2042
|
# The ID of the permission.
|
2040
2043
|
# @param [Google::Apis::DriveV3::Permission] permission_object
|
2044
|
+
# @param [Boolean] enforce_expansive_access
|
2045
|
+
# Whether the request should enforce expansive access rules.
|
2041
2046
|
# @param [Boolean] remove_expiration
|
2042
2047
|
# Whether to remove the expiration date.
|
2043
2048
|
# @param [Boolean] supports_all_drives
|
@@ -2070,7 +2075,7 @@ module Google
|
|
2070
2075
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2071
2076
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2072
2077
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2073
|
-
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)
|
2074
2079
|
command = make_simple_command(:patch, 'files/{fileId}/permissions/{permissionId}', options)
|
2075
2080
|
command.request_representation = Google::Apis::DriveV3::Permission::Representation
|
2076
2081
|
command.request_object = permission_object
|
@@ -2078,6 +2083,7 @@ module Google
|
|
2078
2083
|
command.response_class = Google::Apis::DriveV3::Permission
|
2079
2084
|
command.params['fileId'] = file_id unless file_id.nil?
|
2080
2085
|
command.params['permissionId'] = permission_id unless permission_id.nil?
|
2086
|
+
command.query['enforceExpansiveAccess'] = enforce_expansive_access unless enforce_expansive_access.nil?
|
2081
2087
|
command.query['removeExpiration'] = remove_expiration unless remove_expiration.nil?
|
2082
2088
|
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
2083
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: []
|