Skip to content

Commit be985f4

Browse files
feat: Automated regeneration of drive v2 client (#22382)
Auto-created at 2025-04-06 10:29:35 +0000 using the toys pull request generator.
1 parent 6fac06a commit be985f4

File tree

6 files changed

+33
-28
lines changed

6 files changed

+33
-28
lines changed

generated/google-apis-drive_v2/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-drive_v2
22

3+
### v0.50.0 (2025-04-06)
4+
5+
* Regenerated from discovery document revision 20250329
6+
37
### v0.49.0 (2025-02-26)
48

59
* Regenerated from discovery document revision 20250216

generated/google-apis-drive_v2/OVERVIEW.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Gem names for modern clients are often of the form `google-cloud-<service_name>`
7979

8080
**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.
8181

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.
8383

8484
## Supported Ruby versions
8585

generated/google-apis-drive_v2/lib/google/apis/drive_v2.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module Apis
2323
#
2424
# The Google Drive API allows clients to access resources from Google Drive.
2525
#
26-
# @see https://developers.google.com/drive/
26+
# @see https://developers.google.com/workspace/drive/
2727
module DriveV2
2828
# Version of the Google Drive API this client connects to.
2929
# This is NOT the gem version.

generated/google-apis-drive_v2/lib/google/apis/drive_v2/classes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,7 @@ class Comment
10431043

10441044
# A region of the document represented as a JSON string. For details on defining
10451045
# 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).
10471047
# Corresponds to the JSON property `anchor`
10481048
# @return [String]
10491049
attr_accessor :anchor

generated/google-apis-drive_v2/lib/google/apis/drive_v2/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module DriveV2
1818
# Version of the google-apis-drive_v2 gem
19-
GEM_VERSION = "0.49.0"
19+
GEM_VERSION = "0.50.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.16.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250216"
25+
REVISION = "20250329"
2626
end
2727
end
2828
end

generated/google-apis-drive_v2/lib/google/apis/drive_v2/service.rb

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module DriveV2
3030
# Drive = Google::Apis::DriveV2 # Alias the module
3131
# service = Drive::DriveService.new
3232
#
33-
# @see https://developers.google.com/drive/
33+
# @see https://developers.google.com/workspace/drive/
3434
class DriveService < Google::Apis::Core::BaseService
3535
DEFAULT_ENDPOINT_TEMPLATE = "https://www.$UNIVERSE_DOMAIN$/"
3636

@@ -970,8 +970,8 @@ def insert_drive(request_id, drive_object = nil, fields: nil, quota_user: nil, o
970970

971971
# Lists the user's shared drives. This method accepts the `q` parameter, which
972972
# 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.
975975
# @param [Fixnum] max_results
976976
# Maximum number of shared drives to return per page.
977977
# @param [String] page_token
@@ -1307,9 +1307,9 @@ def generate_file_ids(max_results: nil, space: nil, type: nil, fields: nil, quot
13071307
# Gets a file's metadata or content by ID. If you provide the URL parameter `
13081308
# alt=media`, then the response includes the file contents in the response body.
13091309
# 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).
13131313
# @param [String] file_id
13141314
# The ID for the file in question.
13151315
# @param [Boolean] acknowledge_abuse
@@ -1382,18 +1382,18 @@ def get_file(file_id, acknowledge_abuse: nil, include_labels: nil, include_permi
13821382
# 120 GB - *Accepted Media MIME types:*`*/*` Note: Specify a valid MIME type,
13831383
# rather than the literal `*/*` value. The literal `*/*` is only used to
13841384
# 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.
13971397
# @param [Google::Apis::DriveV2::File] file_object
13981398
# @param [Boolean] convert
13991399
# Whether to convert this file to the corresponding Docs Editors format.
@@ -1478,10 +1478,10 @@ def insert_file(file_object = nil, convert: nil, enforce_single_parent: nil, inc
14781478

14791479
# Lists the user's files. This method accepts the `q` parameter, which is a
14801480
# 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.
14851485
# @param [String] corpora
14861486
# Bodies of items (files/documents) to which the query applies. Supported bodies
14871487
# are `default`, `domain`, `drive` and `allDrives`. Prefer `default` or `drive`
@@ -1897,7 +1897,8 @@ def untrash_file(file_id, include_labels: nil, include_permissions_for_view: nil
18971897
# size:* 5,120 GB - *Accepted Media MIME types:*`*/*` Note: Specify a valid MIME
18981898
# type, rather than the literal `*/*` value. The literal `*/*` is only used to
18991899
# 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).
19011902
# @param [String] file_id
19021903
# The ID of the file to update.
19031904
# @param [Google::Apis::DriveV2::File] file_object

0 commit comments

Comments
 (0)