google-apis-drive_v2 0.48.0 → 0.50.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: b788e951eeeccf5b4847297a717db695fb3a8ee82a684975891e793d5e9196b5
4
- data.tar.gz: 541ff6dd0a5639332802b80ac24b6a68427160a6c78c241760e3cafc060cf033
3
+ metadata.gz: 41d783faba84ac4decb86353009735e07951e5ede32e4c238cb5c4ae6ca6a98b
4
+ data.tar.gz: ca001db741a0c937ec60c7e363027dc0ad91ca256f49c0973279db74c825da5b
5
5
  SHA512:
6
- metadata.gz: 67d59384559f339241e2103edcf3b2d05e567c0c2bd8f4773324d2604702a37c1fea5aabc897b9108051caa6b257becba758beac5e228ad9006bf4a11291eb9c
7
- data.tar.gz: 8e8bb5d8852296e69ebb91056cf99ff0e99a9907736b8dbf4c80efbeb72b7ab8d1c9958d69b448515fb653bf9b63931b541724420810fc34a77166a063b452e4
6
+ metadata.gz: 0e983032f0bfa3d515803c6eb74faa5e097bc1b8d3e08c7dfe1b95608a2c62d81ac0b8dcf75cc1ae26d1d6a8764b21a3b6b45bca2874d89b4dfdee2b009686ed
7
+ data.tar.gz: 7225727311130e4e2c54a4ca2761a4389eaa2dd1f98fc8eb16e30a7f36e7c64a6866d26c59e374ac06201fc22f030806770e8e924ef6043a79c8efb37c66531f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-drive_v2
2
2
 
3
+ ### v0.50.0 (2025-04-06)
4
+
5
+ * Regenerated from discovery document revision 20250329
6
+
7
+ ### v0.49.0 (2025-02-26)
8
+
9
+ * Regenerated from discovery document revision 20250216
10
+ * Regenerated using generator version 0.16.0
11
+
3
12
  ### v0.48.0 (2024-12-02)
4
13
 
5
14
  * Regenerated from discovery document revision 20240914
data/OVERVIEW.md CHANGED
@@ -79,7 +79,7 @@ Gem names for modern clients are often of the form `google-cloud-<service_name>`
79
79
 
80
80
  **For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
81
81
 
82
- The [product documentation](https://developers.google.com/drive/) may provide guidance regarding the preferred client library to use.
82
+ The [product documentation](https://developers.google.com/workspace/drive/) may provide guidance regarding the preferred client library to use.
83
83
 
84
84
  ## Supported Ruby versions
85
85
 
@@ -1043,7 +1043,7 @@ module Google
1043
1043
 
1044
1044
  # A region of the document represented as a JSON string. For details on defining
1045
1045
  # anchor properties, refer to [Add comments and replies](https://developers.
1046
- # google.com/drive/api/v2/manage-comments).
1046
+ # google.com/workspace/drive/api/v2/manage-comments).
1047
1047
  # Corresponds to the JSON property `anchor`
1048
1048
  # @return [String]
1049
1049
  attr_accessor :anchor
@@ -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]
@@ -2331,6 +2338,7 @@ module Google
2331
2338
  @id = args[:id] if args.key?(:id)
2332
2339
  @image_media_metadata = args[:image_media_metadata] if args.key?(:image_media_metadata)
2333
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)
2334
2342
  @is_app_authorized = args[:is_app_authorized] if args.key?(:is_app_authorized)
2335
2343
  @kind = args[:kind] if args.key?(:kind)
2336
2344
  @label_info = args[:label_info] if args.key?(:label_info)
@@ -2462,6 +2470,12 @@ module Google
2462
2470
  attr_accessor :can_delete_children
2463
2471
  alias_method :can_delete_children?, :can_delete_children
2464
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
+
2465
2479
  # Output only. Whether the current user can download this file.
2466
2480
  # Corresponds to the JSON property `canDownload`
2467
2481
  # @return [Boolean]
@@ -2476,6 +2490,12 @@ module Google
2476
2490
  attr_accessor :can_edit
2477
2491
  alias_method :can_edit?, :can_edit
2478
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
+
2479
2499
  # Output only. Whether the current user can list the children of this folder.
2480
2500
  # This is always false when the item is not a folder.
2481
2501
  # Corresponds to the JSON property `canListChildren`
@@ -2686,8 +2706,10 @@ module Google
2686
2706
  @can_copy = args[:can_copy] if args.key?(:can_copy)
2687
2707
  @can_delete = args[:can_delete] if args.key?(:can_delete)
2688
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)
2689
2710
  @can_download = args[:can_download] if args.key?(:can_download)
2690
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)
2691
2713
  @can_list_children = args[:can_list_children] if args.key?(:can_list_children)
2692
2714
  @can_modify_content = args[:can_modify_content] if args.key?(:can_modify_content)
2693
2715
  @can_modify_content_restriction = args[:can_modify_content_restriction] if args.key?(:can_modify_content_restriction)
@@ -3645,6 +3667,13 @@ module Google
3645
3667
  # @return [String]
3646
3668
  attr_accessor :id
3647
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
+
3648
3677
  # Output only. This is always `drive#permission`.
3649
3678
  # Corresponds to the JSON property `kind`
3650
3679
  # @return [String]
@@ -3662,9 +3691,8 @@ module Google
3662
3691
  attr_accessor :pending_owner
3663
3692
  alias_method :pending_owner?, :pending_owner
3664
3693
 
3665
- # Output only. Details of whether the permissions on this shared drive item are
3666
- # inherited or directly on this item. This is an output-only field which is
3667
- # 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.
3668
3696
  # Corresponds to the JSON property `permissionDetails`
3669
3697
  # @return [Array<Google::Apis::DriveV2::Permission::PermissionDetail>]
3670
3698
  attr_accessor :permission_details
@@ -3706,7 +3734,11 @@ module Google
3706
3734
  attr_accessor :value
3707
3735
 
3708
3736
  # Indicates the view for this permission. Only populated for permissions that
3709
- # belong to a view. `published` is the only supported value.
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.
3710
3742
  # Corresponds to the JSON property `view`
3711
3743
  # @return [String]
3712
3744
  attr_accessor :view
@@ -3731,6 +3763,7 @@ module Google
3731
3763
  @etag = args[:etag] if args.key?(:etag)
3732
3764
  @expiration_date = args[:expiration_date] if args.key?(:expiration_date)
3733
3765
  @id = args[:id] if args.key?(:id)
3766
+ @inherited_permissions_disabled = args[:inherited_permissions_disabled] if args.key?(:inherited_permissions_disabled)
3734
3767
  @kind = args[:kind] if args.key?(:kind)
3735
3768
  @name = args[:name] if args.key?(:name)
3736
3769
  @pending_owner = args[:pending_owner] if args.key?(:pending_owner)
@@ -3756,14 +3789,14 @@ module Google
3756
3789
  attr_accessor :additional_roles
3757
3790
 
3758
3791
  # Output only. Whether this permission is inherited. This field is always
3759
- # populated. This is an output-only field.
3792
+ # populated.
3760
3793
  # Corresponds to the JSON property `inherited`
3761
3794
  # @return [Boolean]
3762
3795
  attr_accessor :inherited
3763
3796
  alias_method :inherited?, :inherited
3764
3797
 
3765
3798
  # Output only. The ID of the item from which this permission is inherited. This
3766
- # is an output-only field.
3799
+ # is only populated for items in shared drives.
3767
3800
  # Corresponds to the JSON property `inheritedFrom`
3768
3801
  # @return [String]
3769
3802
  attr_accessor :inherited_from
@@ -4103,8 +4136,8 @@ module Google
4103
4136
  attr_accessor :published
4104
4137
  alias_method :published?, :published
4105
4138
 
4106
- # Output only. A link to the published revision. This is only populated for
4107
- # Google Sites files.
4139
+ # Output only. A link to the published revision. This is only populated for Docs
4140
+ # Editors files.
4108
4141
  # Corresponds to the JSON property `publishedLink`
4109
4142
  # @return [String]
4110
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.48.0"
19
+ GEM_VERSION = "0.50.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.15.1"
22
+ GENERATOR_VERSION = "0.16.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240914"
25
+ REVISION = "20250329"
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'
@@ -30,7 +30,7 @@ module Google
30
30
  # Drive = Google::Apis::DriveV2 # Alias the module
31
31
  # service = Drive::DriveService.new
32
32
  #
33
- # @see https://developers.google.com/drive/
33
+ # @see https://developers.google.com/workspace/drive/
34
34
  class DriveService < Google::Apis::Core::BaseService
35
35
  DEFAULT_ENDPOINT_TEMPLATE = "https://www.$UNIVERSE_DOMAIN$/"
36
36
 
@@ -970,8 +970,8 @@ module Google
970
970
 
971
971
  # Lists the user's shared drives. This method accepts the `q` parameter, which
972
972
  # is a search query combining one or more search terms. For more information,
973
- # see the [Search for shared drives](/drive/api/guides/search-shareddrives)
974
- # guide.
973
+ # see the [Search for shared drives](/workspace/drive/api/guides/search-
974
+ # shareddrives) guide.
975
975
  # @param [Fixnum] max_results
976
976
  # Maximum number of shared drives to return per page.
977
977
  # @param [String] page_token
@@ -1307,9 +1307,9 @@ module Google
1307
1307
  # Gets a file's metadata or content by ID. If you provide the URL parameter `
1308
1308
  # alt=media`, then the response includes the file contents in the response body.
1309
1309
  # Downloading content with `alt=media` only works if the file is stored in Drive.
1310
- # To download Google Docs, Sheets, and Slides use [`files.export`](/drive/api/
1311
- # reference/rest/v2/files/export) instead. For more information, see [Download &
1312
- # export files](/drive/api/guides/manage-downloads).
1310
+ # To download Google Docs, Sheets, and Slides use [`files.export`](/workspace/
1311
+ # drive/api/reference/rest/v2/files/export) instead. For more information, see [
1312
+ # Download & export files](/workspace/drive/api/guides/manage-downloads).
1313
1313
  # @param [String] file_id
1314
1314
  # The ID for the file in question.
1315
1315
  # @param [Boolean] acknowledge_abuse
@@ -1382,18 +1382,18 @@ module Google
1382
1382
  # 120 GB - *Accepted Media MIME types:*`*/*` Note: Specify a valid MIME type,
1383
1383
  # rather than the literal `*/*` value. The literal `*/*` is only used to
1384
1384
  # indicate that any valid MIME type can be uploaded. For more information on
1385
- # uploading files, see [Upload file data](/drive/api/guides/manage-uploads).
1386
- # Apps creating shortcuts with `files.insert` must specify the MIME type `
1387
- # application/vnd.google-apps.shortcut`. Apps should specify a file extension in
1388
- # the `title` property when inserting files with the API. For example, an
1389
- # operation to insert a JPEG file should specify something like `"title": "cat.
1390
- # jpg"` in the metadata. Subsequent `GET` requests include the read-only `
1391
- # fileExtension` property populated with the extension originally specified in
1392
- # the `title` property. When a Google Drive user requests to download a file, or
1393
- # when the file is downloaded through the sync client, Drive builds a full
1394
- # filename (with extension) based on the title. In cases where the extension is
1395
- # missing, Drive attempts to determine the extension based on the file's MIME
1396
- # type.
1385
+ # uploading files, see [Upload file data](/workspace/drive/api/guides/manage-
1386
+ # uploads). Apps creating shortcuts with `files.insert` must specify the MIME
1387
+ # type `application/vnd.google-apps.shortcut`. Apps should specify a file
1388
+ # extension in the `title` property when inserting files with the API. For
1389
+ # example, an operation to insert a JPEG file should specify something like `"
1390
+ # title": "cat.jpg"` in the metadata. Subsequent `GET` requests include the read-
1391
+ # only `fileExtension` property populated with the extension originally
1392
+ # specified in the `title` property. When a Google Drive user requests to
1393
+ # download a file, or when the file is downloaded through the sync client, Drive
1394
+ # builds a full filename (with extension) based on the title. In cases where the
1395
+ # extension is missing, Drive attempts to determine the extension based on the
1396
+ # file's MIME type.
1397
1397
  # @param [Google::Apis::DriveV2::File] file_object
1398
1398
  # @param [Boolean] convert
1399
1399
  # Whether to convert this file to the corresponding Docs Editors format.
@@ -1478,10 +1478,10 @@ module Google
1478
1478
 
1479
1479
  # Lists the user's files. This method accepts the `q` parameter, which is a
1480
1480
  # search query combining one or more search terms. For more information, see the
1481
- # [Search for files & folders](/drive/api/guides/search-files) guide. *Note:*
1482
- # This method returns *all* files by default, including trashed files. If you
1483
- # don't want trashed files to appear in the list, use the `trashed=false` query
1484
- # parameter to remove trashed files from the results.
1481
+ # [Search for files & folders](/workspace/drive/api/guides/search-files) guide. *
1482
+ # Note:* This method returns *all* files by default, including trashed files. If
1483
+ # you don't want trashed files to appear in the list, use the `trashed=false`
1484
+ # query parameter to remove trashed files from the results.
1485
1485
  # @param [String] corpora
1486
1486
  # Bodies of items (files/documents) to which the query applies. Supported bodies
1487
1487
  # are `default`, `domain`, `drive` and `allDrives`. Prefer `default` or `drive`
@@ -1897,7 +1897,8 @@ module Google
1897
1897
  # size:* 5,120 GB - *Accepted Media MIME types:*`*/*` Note: Specify a valid MIME
1898
1898
  # type, rather than the literal `*/*` value. The literal `*/*` is only used to
1899
1899
  # indicate that any valid MIME type can be uploaded. For more information on
1900
- # uploading files, see [Upload file data](/drive/api/guides/manage-uploads).
1900
+ # uploading files, see [Upload file data](/workspace/drive/api/guides/manage-
1901
+ # uploads).
1901
1902
  # @param [String] file_id
1902
1903
  # The ID of the file to update.
1903
1904
  # @param [Google::Apis::DriveV2::File] file_object
@@ -2220,6 +2221,8 @@ module Google
2220
2221
  # The ID for the file or shared drive.
2221
2222
  # @param [String] permission_id
2222
2223
  # The ID for the permission.
2224
+ # @param [Boolean] enforce_expansive_access
2225
+ # Whether the request should enforce expansive access rules.
2223
2226
  # @param [Boolean] supports_all_drives
2224
2227
  # Whether the requesting application supports both My Drives and shared drives.
2225
2228
  # @param [Boolean] supports_team_drives
@@ -2246,10 +2249,11 @@ module Google
2246
2249
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2247
2250
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2248
2251
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2249
- 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)
2252
+ 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)
2250
2253
  command = make_simple_command(:delete, 'files/{fileId}/permissions/{permissionId}', options)
2251
2254
  command.params['fileId'] = file_id unless file_id.nil?
2252
2255
  command.params['permissionId'] = permission_id unless permission_id.nil?
2256
+ command.query['enforceExpansiveAccess'] = enforce_expansive_access unless enforce_expansive_access.nil?
2253
2257
  command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
2254
2258
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
2255
2259
  command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
@@ -2459,6 +2463,8 @@ module Google
2459
2463
  # @param [String] permission_id
2460
2464
  # The ID for the permission.
2461
2465
  # @param [Google::Apis::DriveV2::Permission] permission_object
2466
+ # @param [Boolean] enforce_expansive_access
2467
+ # Whether the request should enforce expansive access rules.
2462
2468
  # @param [Boolean] remove_expiration
2463
2469
  # Whether to remove the expiration date.
2464
2470
  # @param [Boolean] supports_all_drives
@@ -2490,7 +2496,7 @@ module Google
2490
2496
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2491
2497
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2492
2498
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2493
- 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)
2499
+ 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)
2494
2500
  command = make_simple_command(:patch, 'files/{fileId}/permissions/{permissionId}', options)
2495
2501
  command.request_representation = Google::Apis::DriveV2::Permission::Representation
2496
2502
  command.request_object = permission_object
@@ -2498,6 +2504,7 @@ module Google
2498
2504
  command.response_class = Google::Apis::DriveV2::Permission
2499
2505
  command.params['fileId'] = file_id unless file_id.nil?
2500
2506
  command.params['permissionId'] = permission_id unless permission_id.nil?
2507
+ command.query['enforceExpansiveAccess'] = enforce_expansive_access unless enforce_expansive_access.nil?
2501
2508
  command.query['removeExpiration'] = remove_expiration unless remove_expiration.nil?
2502
2509
  command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
2503
2510
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
@@ -2515,6 +2522,8 @@ module Google
2515
2522
  # @param [String] permission_id
2516
2523
  # The ID for the permission.
2517
2524
  # @param [Google::Apis::DriveV2::Permission] permission_object
2525
+ # @param [Boolean] enforce_expansive_access
2526
+ # Whether the request should enforce expansive access rules.
2518
2527
  # @param [Boolean] remove_expiration
2519
2528
  # Whether to remove the expiration date.
2520
2529
  # @param [Boolean] supports_all_drives
@@ -2546,7 +2555,7 @@ module Google
2546
2555
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2547
2556
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2548
2557
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2549
- 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)
2558
+ 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)
2550
2559
  command = make_simple_command(:put, 'files/{fileId}/permissions/{permissionId}', options)
2551
2560
  command.request_representation = Google::Apis::DriveV2::Permission::Representation
2552
2561
  command.request_object = permission_object
@@ -2554,6 +2563,7 @@ module Google
2554
2563
  command.response_class = Google::Apis::DriveV2::Permission
2555
2564
  command.params['fileId'] = file_id unless file_id.nil?
2556
2565
  command.params['permissionId'] = permission_id unless permission_id.nil?
2566
+ command.query['enforceExpansiveAccess'] = enforce_expansive_access unless enforce_expansive_access.nil?
2557
2567
  command.query['removeExpiration'] = remove_expiration unless remove_expiration.nil?
2558
2568
  command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
2559
2569
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
@@ -23,7 +23,7 @@ module Google
23
23
  #
24
24
  # The Google Drive API allows clients to access resources from Google Drive.
25
25
  #
26
- # @see https://developers.google.com/drive/
26
+ # @see https://developers.google.com/workspace/drive/
27
27
  module DriveV2
28
28
  # Version of the Google Drive API this client connects to.
29
29
  # This is NOT the gem version.
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.48.0
4
+ version: 0.50.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-04 00:00:00.000000000 Z
10
+ date: 2025-04-16 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.48.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v2/v0.50.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.22
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: []