google-apis-drive_v2 0.47.0 → 0.49.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 +10 -0
- data/lib/google/apis/drive_v2/classes.rb +56 -18
- data/lib/google/apis/drive_v2/gem_version.rb +3 -3
- data/lib/google/apis/drive_v2/representations.rb +4 -0
- data/lib/google/apis/drive_v2/service.rb +34 -12
- 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: 882af9c9bb3a63188eb594db8f42fe9620c52c2b0861e795a1c619cc57021e59
|
4
|
+
data.tar.gz: c5bca4b779b2c506f3ecae9c561f1e171513d99d715d9224fa2a525e772eec27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd4a975a711a7bf6985e9d87e47a9d9073c488f0b4d54c118cefedc9159db89dd2690e6a8c0bcc060536dae9b82a8d5b1ded697818fe46f47fafd346d0f9fe18
|
7
|
+
data.tar.gz: 1158c3e393691a922283cd1186a1ae16f3ba7a5187d220917218ed54dfd89fd8d7d0b01fc4e1134ff0c36aad8483b17cfcdec4d479e37e0fa097878d7e043733
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# Release history for google-apis-drive_v2
|
2
2
|
|
3
|
+
### v0.49.0 (2025-02-26)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250216
|
6
|
+
* Regenerated using generator version 0.16.0
|
7
|
+
|
8
|
+
### v0.48.0 (2024-12-02)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20240914
|
11
|
+
* Regenerated using generator version 0.15.1
|
12
|
+
|
3
13
|
### v0.47.0 (2024-07-25)
|
4
14
|
|
5
15
|
* Regenerated from discovery document revision 20240628
|
@@ -2012,6 +2012,13 @@ module Google
|
|
2012
2012
|
# @return [Google::Apis::DriveV2::File::IndexableText]
|
2013
2013
|
attr_accessor :indexable_text
|
2014
2014
|
|
2015
|
+
# Whether this file has inherited permissions disabled. Inherited permissions
|
2016
|
+
# are enabled by default.
|
2017
|
+
# Corresponds to the JSON property `inheritedPermissionsDisabled`
|
2018
|
+
# @return [Boolean]
|
2019
|
+
attr_accessor :inherited_permissions_disabled
|
2020
|
+
alias_method :inherited_permissions_disabled?, :inherited_permissions_disabled
|
2021
|
+
|
2015
2022
|
# Output only. Whether the file was created or opened by the requesting app.
|
2016
2023
|
# Corresponds to the JSON property `isAppAuthorized`
|
2017
2024
|
# @return [Boolean]
|
@@ -2118,10 +2125,11 @@ module Google
|
|
2118
2125
|
# @return [Array<Google::Apis::DriveV2::User>]
|
2119
2126
|
attr_accessor :owners
|
2120
2127
|
|
2121
|
-
#
|
2122
|
-
#
|
2123
|
-
#
|
2124
|
-
#
|
2128
|
+
# The ID of the parent folder containing the file. A file can only have one
|
2129
|
+
# parent folder; specifying multiple parents isn't supported. If not specified
|
2130
|
+
# as part of an insert request, the file is placed directly in the user's My
|
2131
|
+
# Drive folder. If not specified as part of a copy request, the file inherits
|
2132
|
+
# any discoverable parent of the source file. Update requests must use the `
|
2125
2133
|
# addParents` and `removeParents` parameters to modify the parents list.
|
2126
2134
|
# Corresponds to the JSON property `parents`
|
2127
2135
|
# @return [Array<Google::Apis::DriveV2::ParentReference>]
|
@@ -2221,9 +2229,12 @@ module Google
|
|
2221
2229
|
attr_accessor :thumbnail
|
2222
2230
|
|
2223
2231
|
# Output only. A short-lived link to the file's thumbnail, if available.
|
2224
|
-
# Typically lasts on the order of hours.
|
2225
|
-
#
|
2226
|
-
#
|
2232
|
+
# Typically lasts on the order of hours. Not intended for direct usage on web
|
2233
|
+
# applications due to [Cross-Origin Resource Sharing (CORS)](https://developer.
|
2234
|
+
# mozilla.org/en-US/docs/Web/HTTP/CORS), consider using a proxy server. Only
|
2235
|
+
# populated when the requesting app can access the file's content. If the file
|
2236
|
+
# isn't shared publicly, the URL returned in `Files.thumbnailLink` must be
|
2237
|
+
# fetched using a credentialed request.
|
2227
2238
|
# Corresponds to the JSON property `thumbnailLink`
|
2228
2239
|
# @return [String]
|
2229
2240
|
attr_accessor :thumbnail_link
|
@@ -2327,6 +2338,7 @@ module Google
|
|
2327
2338
|
@id = args[:id] if args.key?(:id)
|
2328
2339
|
@image_media_metadata = args[:image_media_metadata] if args.key?(:image_media_metadata)
|
2329
2340
|
@indexable_text = args[:indexable_text] if args.key?(:indexable_text)
|
2341
|
+
@inherited_permissions_disabled = args[:inherited_permissions_disabled] if args.key?(:inherited_permissions_disabled)
|
2330
2342
|
@is_app_authorized = args[:is_app_authorized] if args.key?(:is_app_authorized)
|
2331
2343
|
@kind = args[:kind] if args.key?(:kind)
|
2332
2344
|
@label_info = args[:label_info] if args.key?(:label_info)
|
@@ -2458,6 +2470,12 @@ module Google
|
|
2458
2470
|
attr_accessor :can_delete_children
|
2459
2471
|
alias_method :can_delete_children?, :can_delete_children
|
2460
2472
|
|
2473
|
+
# Output only. Whether a user can disable inherited permissions.
|
2474
|
+
# Corresponds to the JSON property `canDisableInheritedPermissions`
|
2475
|
+
# @return [Boolean]
|
2476
|
+
attr_accessor :can_disable_inherited_permissions
|
2477
|
+
alias_method :can_disable_inherited_permissions?, :can_disable_inherited_permissions
|
2478
|
+
|
2461
2479
|
# Output only. Whether the current user can download this file.
|
2462
2480
|
# Corresponds to the JSON property `canDownload`
|
2463
2481
|
# @return [Boolean]
|
@@ -2472,6 +2490,12 @@ module Google
|
|
2472
2490
|
attr_accessor :can_edit
|
2473
2491
|
alias_method :can_edit?, :can_edit
|
2474
2492
|
|
2493
|
+
# Output only. Whether a user can re-enable inherited permissions.
|
2494
|
+
# Corresponds to the JSON property `canEnableInheritedPermissions`
|
2495
|
+
# @return [Boolean]
|
2496
|
+
attr_accessor :can_enable_inherited_permissions
|
2497
|
+
alias_method :can_enable_inherited_permissions?, :can_enable_inherited_permissions
|
2498
|
+
|
2475
2499
|
# Output only. Whether the current user can list the children of this folder.
|
2476
2500
|
# This is always false when the item is not a folder.
|
2477
2501
|
# Corresponds to the JSON property `canListChildren`
|
@@ -2682,8 +2706,10 @@ module Google
|
|
2682
2706
|
@can_copy = args[:can_copy] if args.key?(:can_copy)
|
2683
2707
|
@can_delete = args[:can_delete] if args.key?(:can_delete)
|
2684
2708
|
@can_delete_children = args[:can_delete_children] if args.key?(:can_delete_children)
|
2709
|
+
@can_disable_inherited_permissions = args[:can_disable_inherited_permissions] if args.key?(:can_disable_inherited_permissions)
|
2685
2710
|
@can_download = args[:can_download] if args.key?(:can_download)
|
2686
2711
|
@can_edit = args[:can_edit] if args.key?(:can_edit)
|
2712
|
+
@can_enable_inherited_permissions = args[:can_enable_inherited_permissions] if args.key?(:can_enable_inherited_permissions)
|
2687
2713
|
@can_list_children = args[:can_list_children] if args.key?(:can_list_children)
|
2688
2714
|
@can_modify_content = args[:can_modify_content] if args.key?(:can_modify_content)
|
2689
2715
|
@can_modify_content_restriction = args[:can_modify_content_restriction] if args.key?(:can_modify_content_restriction)
|
@@ -3532,9 +3558,10 @@ module Google
|
|
3532
3558
|
end
|
3533
3559
|
end
|
3534
3560
|
|
3535
|
-
# A reference to a file's parent.
|
3536
|
-
#
|
3537
|
-
#
|
3561
|
+
# A reference to a file's parent. A file can only have one parent folder;
|
3562
|
+
# specifying multiple parents isn't supported. Some resource methods (such as `
|
3563
|
+
# parents.get`) require a `parentId`. Use the `parents.list` method to retrieve
|
3564
|
+
# the ID for a parent.
|
3538
3565
|
class ParentReference
|
3539
3566
|
include Google::Apis::Core::Hashable
|
3540
3567
|
|
@@ -3640,6 +3667,13 @@ module Google
|
|
3640
3667
|
# @return [String]
|
3641
3668
|
attr_accessor :id
|
3642
3669
|
|
3670
|
+
# When true, only organizers, owners, and users with permissions added directly
|
3671
|
+
# on the item can access it.
|
3672
|
+
# Corresponds to the JSON property `inheritedPermissionsDisabled`
|
3673
|
+
# @return [Boolean]
|
3674
|
+
attr_accessor :inherited_permissions_disabled
|
3675
|
+
alias_method :inherited_permissions_disabled?, :inherited_permissions_disabled
|
3676
|
+
|
3643
3677
|
# Output only. This is always `drive#permission`.
|
3644
3678
|
# Corresponds to the JSON property `kind`
|
3645
3679
|
# @return [String]
|
@@ -3657,9 +3691,8 @@ module Google
|
|
3657
3691
|
attr_accessor :pending_owner
|
3658
3692
|
alias_method :pending_owner?, :pending_owner
|
3659
3693
|
|
3660
|
-
# Output only. Details of whether the permissions on this
|
3661
|
-
#
|
3662
|
-
# present only for shared drive items.
|
3694
|
+
# Output only. Details of whether the permissions on this item are inherited or
|
3695
|
+
# directly on this item.
|
3663
3696
|
# Corresponds to the JSON property `permissionDetails`
|
3664
3697
|
# @return [Array<Google::Apis::DriveV2::Permission::PermissionDetail>]
|
3665
3698
|
attr_accessor :permission_details
|
@@ -3701,7 +3734,11 @@ module Google
|
|
3701
3734
|
attr_accessor :value
|
3702
3735
|
|
3703
3736
|
# Indicates the view for this permission. Only populated for permissions that
|
3704
|
-
# belong to a view.
|
3737
|
+
# belong to a view. published and metadata are the only supported values. -
|
3738
|
+
# published: The permission's role is published_reader. - metadata: The item is
|
3739
|
+
# only visible to the metadata view because the item has limited access and the
|
3740
|
+
# scope has at least read access to the parent. Note: The metadata view is
|
3741
|
+
# currently only supported on folders.
|
3705
3742
|
# Corresponds to the JSON property `view`
|
3706
3743
|
# @return [String]
|
3707
3744
|
attr_accessor :view
|
@@ -3726,6 +3763,7 @@ module Google
|
|
3726
3763
|
@etag = args[:etag] if args.key?(:etag)
|
3727
3764
|
@expiration_date = args[:expiration_date] if args.key?(:expiration_date)
|
3728
3765
|
@id = args[:id] if args.key?(:id)
|
3766
|
+
@inherited_permissions_disabled = args[:inherited_permissions_disabled] if args.key?(:inherited_permissions_disabled)
|
3729
3767
|
@kind = args[:kind] if args.key?(:kind)
|
3730
3768
|
@name = args[:name] if args.key?(:name)
|
3731
3769
|
@pending_owner = args[:pending_owner] if args.key?(:pending_owner)
|
@@ -3751,14 +3789,14 @@ module Google
|
|
3751
3789
|
attr_accessor :additional_roles
|
3752
3790
|
|
3753
3791
|
# Output only. Whether this permission is inherited. This field is always
|
3754
|
-
# populated.
|
3792
|
+
# populated.
|
3755
3793
|
# Corresponds to the JSON property `inherited`
|
3756
3794
|
# @return [Boolean]
|
3757
3795
|
attr_accessor :inherited
|
3758
3796
|
alias_method :inherited?, :inherited
|
3759
3797
|
|
3760
3798
|
# Output only. The ID of the item from which this permission is inherited. This
|
3761
|
-
# is
|
3799
|
+
# is only populated for items in shared drives.
|
3762
3800
|
# Corresponds to the JSON property `inheritedFrom`
|
3763
3801
|
# @return [String]
|
3764
3802
|
attr_accessor :inherited_from
|
@@ -4098,8 +4136,8 @@ module Google
|
|
4098
4136
|
attr_accessor :published
|
4099
4137
|
alias_method :published?, :published
|
4100
4138
|
|
4101
|
-
# Output only. A link to the published revision. This is only populated for
|
4102
|
-
#
|
4139
|
+
# Output only. A link to the published revision. This is only populated for Docs
|
4140
|
+
# Editors files.
|
4103
4141
|
# Corresponds to the JSON property `publishedLink`
|
4104
4142
|
# @return [String]
|
4105
4143
|
attr_accessor :published_link
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DriveV2
|
18
18
|
# Version of the google-apis-drive_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.49.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 = "20250216"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -884,6 +884,7 @@ module Google
|
|
884
884
|
|
885
885
|
property :indexable_text, as: 'indexableText', class: Google::Apis::DriveV2::File::IndexableText, decorator: Google::Apis::DriveV2::File::IndexableText::Representation
|
886
886
|
|
887
|
+
property :inherited_permissions_disabled, as: 'inheritedPermissionsDisabled'
|
887
888
|
property :is_app_authorized, as: 'isAppAuthorized'
|
888
889
|
property :kind, as: 'kind'
|
889
890
|
property :label_info, as: 'labelInfo', class: Google::Apis::DriveV2::File::LabelInfo, decorator: Google::Apis::DriveV2::File::LabelInfo::Representation
|
@@ -966,8 +967,10 @@ module Google
|
|
966
967
|
property :can_copy, as: 'canCopy'
|
967
968
|
property :can_delete, as: 'canDelete'
|
968
969
|
property :can_delete_children, as: 'canDeleteChildren'
|
970
|
+
property :can_disable_inherited_permissions, as: 'canDisableInheritedPermissions'
|
969
971
|
property :can_download, as: 'canDownload'
|
970
972
|
property :can_edit, as: 'canEdit'
|
973
|
+
property :can_enable_inherited_permissions, as: 'canEnableInheritedPermissions'
|
971
974
|
property :can_list_children, as: 'canListChildren'
|
972
975
|
property :can_modify_content, as: 'canModifyContent'
|
973
976
|
property :can_modify_content_restriction, as: 'canModifyContentRestriction'
|
@@ -1236,6 +1239,7 @@ module Google
|
|
1236
1239
|
property :expiration_date, as: 'expirationDate', type: DateTime
|
1237
1240
|
|
1238
1241
|
property :id, as: 'id'
|
1242
|
+
property :inherited_permissions_disabled, as: 'inheritedPermissionsDisabled'
|
1239
1243
|
property :kind, as: 'kind'
|
1240
1244
|
property :name, as: 'name'
|
1241
1245
|
property :pending_owner, as: 'pendingOwner'
|
@@ -1314,7 +1314,9 @@ module Google
|
|
1314
1314
|
# The ID for the file in question.
|
1315
1315
|
# @param [Boolean] acknowledge_abuse
|
1316
1316
|
# Whether the user is acknowledging the risk of downloading known malware or
|
1317
|
-
# other abusive files.
|
1317
|
+
# other abusive files. This is only applicable when the `alt` parameter is set
|
1318
|
+
# to `media` and the user is the owner of the file or an organizer of the shared
|
1319
|
+
# drive in which the file resides.
|
1318
1320
|
# @param [String] include_labels
|
1319
1321
|
# A comma-separated list of IDs of labels to include in the `labelInfo` part of
|
1320
1322
|
# the response.
|
@@ -1503,13 +1505,22 @@ module Google
|
|
1503
1505
|
# The maximum number of files to return per page. Partial or empty result pages
|
1504
1506
|
# are possible even before the end of the files list has been reached.
|
1505
1507
|
# @param [String] order_by
|
1506
|
-
# A comma-separated list of sort keys. Valid keys are `createdDate
|
1507
|
-
#
|
1508
|
-
#
|
1509
|
-
#
|
1510
|
-
#
|
1511
|
-
#
|
1512
|
-
#
|
1508
|
+
# A comma-separated list of sort keys. Valid keys are: * `createdDate`: When the
|
1509
|
+
# file was created. * `folder`: The folder ID. This field is sorted using
|
1510
|
+
# alphabetical ordering. * `lastViewedByMeDate`: The last time the file was
|
1511
|
+
# viewed by the user. * `modifiedByMeDate`: The last time the file was modified
|
1512
|
+
# by the user. * `modifiedDate`: The last time the file was modified by anyone. *
|
1513
|
+
# `quotaBytesUsed`: The number of storage quota bytes used by the file. * `
|
1514
|
+
# recency`: The most recent timestamp from the file's date-time fields. * `
|
1515
|
+
# sharedWithMeDate`: When the file was shared with the user, if applicable. * `
|
1516
|
+
# starred`: Whether the user has starred the file. * `title`: The title of the
|
1517
|
+
# file. This field is sorted using alphabetical ordering, so 1, 12, 2, 22. * `
|
1518
|
+
# title_natural`: The title of the file. This field is sorted using natural sort
|
1519
|
+
# ordering, so 1, 2, 12, 22. Each key sorts ascending by default, but can be
|
1520
|
+
# reversed with the 'desc' modifier. Example usage: `?orderBy=folder,
|
1521
|
+
# modifiedDate desc,title`. Note that there's a current limitation for users
|
1522
|
+
# with approximately one million files in which the requested sort order is
|
1523
|
+
# ignored.
|
1513
1524
|
# @param [String] page_token
|
1514
1525
|
# Page token for files.
|
1515
1526
|
# @param [String] projection
|
@@ -2003,7 +2014,9 @@ module Google
|
|
2003
2014
|
# @param [Google::Apis::DriveV2::Channel] channel_object
|
2004
2015
|
# @param [Boolean] acknowledge_abuse
|
2005
2016
|
# Whether the user is acknowledging the risk of downloading known malware or
|
2006
|
-
# other abusive files.
|
2017
|
+
# other abusive files. This is only applicable when the `alt` parameter is set
|
2018
|
+
# to `media` and the user is the owner of the file or an organizer of the shared
|
2019
|
+
# drive in which the file resides.
|
2007
2020
|
# @param [String] include_labels
|
2008
2021
|
# A comma-separated list of IDs of labels to include in the `labelInfo` part of
|
2009
2022
|
# the response.
|
@@ -2207,6 +2220,8 @@ module Google
|
|
2207
2220
|
# The ID for the file or shared drive.
|
2208
2221
|
# @param [String] permission_id
|
2209
2222
|
# The ID for the permission.
|
2223
|
+
# @param [Boolean] enforce_expansive_access
|
2224
|
+
# Whether the request should enforce expansive access rules.
|
2210
2225
|
# @param [Boolean] supports_all_drives
|
2211
2226
|
# Whether the requesting application supports both My Drives and shared drives.
|
2212
2227
|
# @param [Boolean] supports_team_drives
|
@@ -2233,10 +2248,11 @@ module Google
|
|
2233
2248
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2234
2249
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2235
2250
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2236
|
-
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)
|
2251
|
+
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)
|
2237
2252
|
command = make_simple_command(:delete, 'files/{fileId}/permissions/{permissionId}', options)
|
2238
2253
|
command.params['fileId'] = file_id unless file_id.nil?
|
2239
2254
|
command.params['permissionId'] = permission_id unless permission_id.nil?
|
2255
|
+
command.query['enforceExpansiveAccess'] = enforce_expansive_access unless enforce_expansive_access.nil?
|
2240
2256
|
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
2241
2257
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
2242
2258
|
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
@@ -2446,6 +2462,8 @@ module Google
|
|
2446
2462
|
# @param [String] permission_id
|
2447
2463
|
# The ID for the permission.
|
2448
2464
|
# @param [Google::Apis::DriveV2::Permission] permission_object
|
2465
|
+
# @param [Boolean] enforce_expansive_access
|
2466
|
+
# Whether the request should enforce expansive access rules.
|
2449
2467
|
# @param [Boolean] remove_expiration
|
2450
2468
|
# Whether to remove the expiration date.
|
2451
2469
|
# @param [Boolean] supports_all_drives
|
@@ -2477,7 +2495,7 @@ module Google
|
|
2477
2495
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2478
2496
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2479
2497
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2480
|
-
def patch_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)
|
2498
|
+
def patch_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)
|
2481
2499
|
command = make_simple_command(:patch, 'files/{fileId}/permissions/{permissionId}', options)
|
2482
2500
|
command.request_representation = Google::Apis::DriveV2::Permission::Representation
|
2483
2501
|
command.request_object = permission_object
|
@@ -2485,6 +2503,7 @@ module Google
|
|
2485
2503
|
command.response_class = Google::Apis::DriveV2::Permission
|
2486
2504
|
command.params['fileId'] = file_id unless file_id.nil?
|
2487
2505
|
command.params['permissionId'] = permission_id unless permission_id.nil?
|
2506
|
+
command.query['enforceExpansiveAccess'] = enforce_expansive_access unless enforce_expansive_access.nil?
|
2488
2507
|
command.query['removeExpiration'] = remove_expiration unless remove_expiration.nil?
|
2489
2508
|
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
2490
2509
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
@@ -2502,6 +2521,8 @@ module Google
|
|
2502
2521
|
# @param [String] permission_id
|
2503
2522
|
# The ID for the permission.
|
2504
2523
|
# @param [Google::Apis::DriveV2::Permission] permission_object
|
2524
|
+
# @param [Boolean] enforce_expansive_access
|
2525
|
+
# Whether the request should enforce expansive access rules.
|
2505
2526
|
# @param [Boolean] remove_expiration
|
2506
2527
|
# Whether to remove the expiration date.
|
2507
2528
|
# @param [Boolean] supports_all_drives
|
@@ -2533,7 +2554,7 @@ module Google
|
|
2533
2554
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2534
2555
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2535
2556
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2536
|
-
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)
|
2557
|
+
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)
|
2537
2558
|
command = make_simple_command(:put, 'files/{fileId}/permissions/{permissionId}', options)
|
2538
2559
|
command.request_representation = Google::Apis::DriveV2::Permission::Representation
|
2539
2560
|
command.request_object = permission_object
|
@@ -2541,6 +2562,7 @@ module Google
|
|
2541
2562
|
command.response_class = Google::Apis::DriveV2::Permission
|
2542
2563
|
command.params['fileId'] = file_id unless file_id.nil?
|
2543
2564
|
command.params['permissionId'] = permission_id unless permission_id.nil?
|
2565
|
+
command.query['enforceExpansiveAccess'] = enforce_expansive_access unless enforce_expansive_access.nil?
|
2544
2566
|
command.query['removeExpiration'] = remove_expiration unless remove_expiration.nil?
|
2545
2567
|
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
2546
2568
|
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_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.49.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_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v2/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v2/v0.49.0
|
62
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-drive_v2
|
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 V2
|
82
79
|
test_files: []
|