Skip to content

Commit 4fe0fdc

Browse files
feat: Automated regeneration of drive v3 client (googleapis#23794)
Auto-created at 2025-07-27 10:22:44 +0000 using the toys pull request generator.
1 parent 4f08e51 commit 4fe0fdc

File tree

5 files changed

+8
-150
lines changed

5 files changed

+8
-150
lines changed

generated/google-apis-drive_v3/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_v3
22

3+
### v0.68.0 (2025-07-27)
4+
5+
* Regenerated from discovery document revision 20250723
6+
37
### v0.67.0 (2025-07-06)
48

59
* Regenerated from discovery document revision 20250701

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

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2005,8 +2005,8 @@ class Capabilities
20052005
attr_accessor :can_change_copy_requires_writer_permission
20062006
alias_method :can_change_copy_requires_writer_permission?, :can_change_copy_requires_writer_permission
20072007

2008-
# Output only. Whether the current user can change the owner-applied download
2009-
# restrictions of the file.
2008+
# Output only. Whether the current user can change the owner or organizer-
2009+
# applied download restrictions of the file.
20102010
# Corresponds to the JSON property `canChangeItemDownloadRestriction`
20112011
# @return [Boolean]
20122012
attr_accessor :can_change_item_download_restriction
@@ -3017,31 +3017,6 @@ def update!(**args)
30173017
end
30183018
end
30193019

3020-
# The response message for Operations.ListOperations.
3021-
class ListOperationsResponse
3022-
include Google::Apis::Core::Hashable
3023-
3024-
# The standard List next-page token.
3025-
# Corresponds to the JSON property `nextPageToken`
3026-
# @return [String]
3027-
attr_accessor :next_page_token
3028-
3029-
# A list of operations that matches the specified filter in the request.
3030-
# Corresponds to the JSON property `operations`
3031-
# @return [Array<Google::Apis::DriveV3::Operation>]
3032-
attr_accessor :operations
3033-
3034-
def initialize(**args)
3035-
update!(**args)
3036-
end
3037-
3038-
# Update properties of this object
3039-
def update!(**args)
3040-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3041-
@operations = args[:operations] if args.key?(:operations)
3042-
end
3043-
end
3044-
30453020
# A request to modify the set of labels on a file. This request may contain many
30463021
# modifications that will either all succeed or all fail atomically.
30473022
class ModifyLabelsRequest

generated/google-apis-drive_v3/lib/google/apis/drive_v3/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 DriveV3
1818
# Version of the google-apis-drive_v3 gem
19-
GEM_VERSION = "0.67.0"
19+
GEM_VERSION = "0.68.0"
2020

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

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

generated/google-apis-drive_v3/lib/google/apis/drive_v3/representations.rb

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -268,12 +268,6 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
268268
include Google::Apis::Core::JsonObjectSupport
269269
end
270270

271-
class ListOperationsResponse
272-
class Representation < Google::Apis::Core::JsonRepresentation; end
273-
274-
include Google::Apis::Core::JsonObjectSupport
275-
end
276-
277271
class ModifyLabelsRequest
278272
class Representation < Google::Apis::Core::JsonRepresentation; end
279273

@@ -1050,15 +1044,6 @@ class Representation < Google::Apis::Core::JsonRepresentation
10501044
end
10511045
end
10521046

1053-
class ListOperationsResponse
1054-
# @private
1055-
class Representation < Google::Apis::Core::JsonRepresentation
1056-
property :next_page_token, as: 'nextPageToken'
1057-
collection :operations, as: 'operations', class: Google::Apis::DriveV3::Operation, decorator: Google::Apis::DriveV3::Operation::Representation
1058-
1059-
end
1060-
end
1061-
10621047
class ModifyLabelsRequest
10631048
# @private
10641049
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 0 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -1680,72 +1680,6 @@ def watch_file(file_id, channel_object = nil, acknowledge_abuse: nil, include_la
16801680
execute_or_queue_command(command, &block)
16811681
end
16821682

1683-
# Starts asynchronous cancellation on a long-running operation. The server makes
1684-
# a best effort to cancel the operation, but success is not guaranteed. If the
1685-
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
1686-
# Clients can use Operations.GetOperation or other methods to check whether the
1687-
# cancellation succeeded or whether the operation completed despite cancellation.
1688-
# On successful cancellation, the operation is not deleted; instead, it becomes
1689-
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
1690-
# , corresponding to `Code.CANCELLED`.
1691-
# @param [String] name
1692-
# The name of the operation resource to be cancelled.
1693-
# @param [String] fields
1694-
# Selector specifying which fields to include in a partial response.
1695-
# @param [String] quota_user
1696-
# Available to use for quota purposes for server-side applications. Can be any
1697-
# arbitrary string assigned to a user, but should not exceed 40 characters.
1698-
# @param [Google::Apis::RequestOptions] options
1699-
# Request-specific options
1700-
#
1701-
# @yield [result, err] Result & error if block supplied
1702-
# @yieldparam result [NilClass] No result returned for this method
1703-
# @yieldparam err [StandardError] error object if request failed
1704-
#
1705-
# @return [void]
1706-
#
1707-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1708-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1709-
# @raise [Google::Apis::AuthorizationError] Authorization is required
1710-
def cancel_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1711-
command = make_simple_command(:post, 'operations/{name}:cancel', options)
1712-
command.params['name'] = name unless name.nil?
1713-
command.query['fields'] = fields unless fields.nil?
1714-
command.query['quotaUser'] = quota_user unless quota_user.nil?
1715-
execute_or_queue_command(command, &block)
1716-
end
1717-
1718-
# Deletes a long-running operation. This method indicates that the client is no
1719-
# longer interested in the operation result. It does not cancel the operation.
1720-
# If the server doesn't support this method, it returns `google.rpc.Code.
1721-
# UNIMPLEMENTED`.
1722-
# @param [String] name
1723-
# The name of the operation resource to be deleted.
1724-
# @param [String] fields
1725-
# Selector specifying which fields to include in a partial response.
1726-
# @param [String] quota_user
1727-
# Available to use for quota purposes for server-side applications. Can be any
1728-
# arbitrary string assigned to a user, but should not exceed 40 characters.
1729-
# @param [Google::Apis::RequestOptions] options
1730-
# Request-specific options
1731-
#
1732-
# @yield [result, err] Result & error if block supplied
1733-
# @yieldparam result [NilClass] No result returned for this method
1734-
# @yieldparam err [StandardError] error object if request failed
1735-
#
1736-
# @return [void]
1737-
#
1738-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1739-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1740-
# @raise [Google::Apis::AuthorizationError] Authorization is required
1741-
def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1742-
command = make_simple_command(:delete, 'operations/{name}', options)
1743-
command.params['name'] = name unless name.nil?
1744-
command.query['fields'] = fields unless fields.nil?
1745-
command.query['quotaUser'] = quota_user unless quota_user.nil?
1746-
execute_or_queue_command(command, &block)
1747-
end
1748-
17491683
# Gets the latest state of a long-running operation. Clients can use this method
17501684
# to poll the operation result at intervals as recommended by the API service.
17511685
# @param [String] name
@@ -1777,46 +1711,6 @@ def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
17771711
execute_or_queue_command(command, &block)
17781712
end
17791713

1780-
# Lists operations that match the specified filter in the request. If the server
1781-
# doesn't support this method, it returns `UNIMPLEMENTED`.
1782-
# @param [String] filter
1783-
# The standard list filter.
1784-
# @param [String] name
1785-
# The name of the operation's parent resource.
1786-
# @param [Fixnum] page_size
1787-
# The standard list page size.
1788-
# @param [String] page_token
1789-
# The standard list page token.
1790-
# @param [String] fields
1791-
# Selector specifying which fields to include in a partial response.
1792-
# @param [String] quota_user
1793-
# Available to use for quota purposes for server-side applications. Can be any
1794-
# arbitrary string assigned to a user, but should not exceed 40 characters.
1795-
# @param [Google::Apis::RequestOptions] options
1796-
# Request-specific options
1797-
#
1798-
# @yield [result, err] Result & error if block supplied
1799-
# @yieldparam result [Google::Apis::DriveV3::ListOperationsResponse] parsed result object
1800-
# @yieldparam err [StandardError] error object if request failed
1801-
#
1802-
# @return [Google::Apis::DriveV3::ListOperationsResponse]
1803-
#
1804-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1805-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1806-
# @raise [Google::Apis::AuthorizationError] Authorization is required
1807-
def list_operations(filter: nil, name: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1808-
command = make_simple_command(:get, 'operations', options)
1809-
command.response_representation = Google::Apis::DriveV3::ListOperationsResponse::Representation
1810-
command.response_class = Google::Apis::DriveV3::ListOperationsResponse
1811-
command.query['filter'] = filter unless filter.nil?
1812-
command.query['name'] = name unless name.nil?
1813-
command.query['pageSize'] = page_size unless page_size.nil?
1814-
command.query['pageToken'] = page_token unless page_token.nil?
1815-
command.query['fields'] = fields unless fields.nil?
1816-
command.query['quotaUser'] = quota_user unless quota_user.nil?
1817-
execute_or_queue_command(command, &block)
1818-
end
1819-
18201714
# Creates a permission for a file or shared drive. **Warning:** Concurrent
18211715
# permissions operations on the same file are not supported; only the last
18221716
# update is applied.

0 commit comments

Comments
 (0)