google-apis-drive_v3 0.67.0 → 0.69.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 +8 -0
- data/lib/google/apis/drive_v3/classes.rb +2 -27
- data/lib/google/apis/drive_v3/gem_version.rb +2 -2
- data/lib/google/apis/drive_v3/representations.rb +0 -15
- data/lib/google/apis/drive_v3/service.rb +27 -116
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f761a941e598963f7408e84fdb613232ca491cc4f887a0531e8be34101f41cd
|
4
|
+
data.tar.gz: a01176fd70b117161701648fe06436d0e84b21b81dab7efeb865b20f68420451
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d361dd99259748da7e3a6301a59eeeb1ea54155b07edc6f0bb1497889c85ebb18563b0e5d1fc0f7c79b238281c24fdb45245a880a280a7df02a5b7e136fa408
|
7
|
+
data.tar.gz: dd3758c729d86ccefc4159bc4f759755bca5a5b40163394b4965ba5539b4477319fd3b0f28b80184f52ecf8648df37c588149801da8057e7c9fa209278cc2ccf
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-drive_v3
|
2
2
|
|
3
|
+
### v0.69.0 (2025-08-24)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250819
|
6
|
+
|
7
|
+
### v0.68.0 (2025-07-27)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20250723
|
10
|
+
|
3
11
|
### v0.67.0 (2025-07-06)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20250701
|
@@ -2005,8 +2005,8 @@ module Google
|
|
2005
2005
|
attr_accessor :can_change_copy_requires_writer_permission
|
2006
2006
|
alias_method :can_change_copy_requires_writer_permission?, :can_change_copy_requires_writer_permission
|
2007
2007
|
|
2008
|
-
# Output only. Whether the current user can change the owner-
|
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.
|
2010
2010
|
# Corresponds to the JSON property `canChangeItemDownloadRestriction`
|
2011
2011
|
# @return [Boolean]
|
2012
2012
|
attr_accessor :can_change_item_download_restriction
|
@@ -3017,31 +3017,6 @@ module Google
|
|
3017
3017
|
end
|
3018
3018
|
end
|
3019
3019
|
|
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
|
-
|
3045
3020
|
# A request to modify the set of labels on a file. This request may contain many
|
3046
3021
|
# modifications that will either all succeed or all fail atomically.
|
3047
3022
|
class ModifyLabelsRequest
|
@@ -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.69.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250819"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -268,12 +268,6 @@ module Google
|
|
268
268
|
include Google::Apis::Core::JsonObjectSupport
|
269
269
|
end
|
270
270
|
|
271
|
-
class ListOperationsResponse
|
272
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
273
|
-
|
274
|
-
include Google::Apis::Core::JsonObjectSupport
|
275
|
-
end
|
276
|
-
|
277
271
|
class ModifyLabelsRequest
|
278
272
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
279
273
|
|
@@ -1050,15 +1044,6 @@ module Google
|
|
1050
1044
|
end
|
1051
1045
|
end
|
1052
1046
|
|
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
|
-
|
1062
1047
|
class ModifyLabelsRequest
|
1063
1048
|
# @private
|
1064
1049
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -703,7 +703,8 @@ module Google
|
|
703
703
|
execute_or_queue_command(command, &block)
|
704
704
|
end
|
705
705
|
|
706
|
-
# Creates a shared drive.
|
706
|
+
# Creates a shared drive. For more information, see [Manage shared drives](https:
|
707
|
+
# //developers.google.com/workspace/drive/api/guides/manage-shareddrives).
|
707
708
|
# @param [String] request_id
|
708
709
|
# Required. An ID, such as a random UUID, which uniquely identifies this user's
|
709
710
|
# request for idempotent creation of a shared drive. A repeated request by the
|
@@ -741,7 +742,9 @@ module Google
|
|
741
742
|
end
|
742
743
|
|
743
744
|
# Permanently deletes a shared drive for which the user is an `organizer`. The
|
744
|
-
# shared drive cannot contain any untrashed items.
|
745
|
+
# shared drive cannot contain any untrashed items. For more information, see [
|
746
|
+
# Manage shared drives](https://developers.google.com/workspace/drive/api/guides/
|
747
|
+
# manage-shareddrives).
|
745
748
|
# @param [String] drive_id
|
746
749
|
# The ID of the shared drive.
|
747
750
|
# @param [Boolean] allow_item_deletion
|
@@ -778,7 +781,9 @@ module Google
|
|
778
781
|
execute_or_queue_command(command, &block)
|
779
782
|
end
|
780
783
|
|
781
|
-
# Gets a shared drive's metadata by ID.
|
784
|
+
# Gets a shared drive's metadata by ID. For more information, see [Manage shared
|
785
|
+
# drives](https://developers.google.com/workspace/drive/api/guides/manage-
|
786
|
+
# shareddrives).
|
782
787
|
# @param [String] drive_id
|
783
788
|
# The ID of the shared drive.
|
784
789
|
# @param [Boolean] use_domain_admin_access
|
@@ -813,7 +818,9 @@ module Google
|
|
813
818
|
execute_or_queue_command(command, &block)
|
814
819
|
end
|
815
820
|
|
816
|
-
# Hides a shared drive from the default view.
|
821
|
+
# Hides a shared drive from the default view. For more information, see [Manage
|
822
|
+
# shared drives](https://developers.google.com/workspace/drive/api/guides/manage-
|
823
|
+
# shareddrives).
|
817
824
|
# @param [String] drive_id
|
818
825
|
# The ID of the shared drive.
|
819
826
|
# @param [String] fields
|
@@ -886,7 +893,9 @@ module Google
|
|
886
893
|
execute_or_queue_command(command, &block)
|
887
894
|
end
|
888
895
|
|
889
|
-
# Restores a shared drive to the default view.
|
896
|
+
# Restores a shared drive to the default view. For more information, see [Manage
|
897
|
+
# shared drives](https://developers.google.com/workspace/drive/api/guides/manage-
|
898
|
+
# shareddrives).
|
890
899
|
# @param [String] drive_id
|
891
900
|
# The ID of the shared drive.
|
892
901
|
# @param [String] fields
|
@@ -916,7 +925,9 @@ module Google
|
|
916
925
|
execute_or_queue_command(command, &block)
|
917
926
|
end
|
918
927
|
|
919
|
-
# Updates the metadata for a shared drive.
|
928
|
+
# Updates the metadata for a shared drive. For more information, see [Manage
|
929
|
+
# shared drives](https://developers.google.com/workspace/drive/api/guides/manage-
|
930
|
+
# shareddrives).
|
920
931
|
# @param [String] drive_id
|
921
932
|
# The ID of the shared drive.
|
922
933
|
# @param [Google::Apis::DriveV3::Drive] drive_object
|
@@ -1680,72 +1691,6 @@ module Google
|
|
1680
1691
|
execute_or_queue_command(command, &block)
|
1681
1692
|
end
|
1682
1693
|
|
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
|
-
|
1749
1694
|
# Gets the latest state of a long-running operation. Clients can use this method
|
1750
1695
|
# to poll the operation result at intervals as recommended by the API service.
|
1751
1696
|
# @param [String] name
|
@@ -1777,46 +1722,6 @@ module Google
|
|
1777
1722
|
execute_or_queue_command(command, &block)
|
1778
1723
|
end
|
1779
1724
|
|
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
|
-
|
1820
1725
|
# Creates a permission for a file or shared drive. **Warning:** Concurrent
|
1821
1726
|
# permissions operations on the same file are not supported; only the last
|
1822
1727
|
# update is applied.
|
@@ -2292,7 +2197,8 @@ module Google
|
|
2292
2197
|
# Permanently deletes a file version. You can only delete revisions for files
|
2293
2198
|
# with binary content in Google Drive, like images or videos. Revisions for
|
2294
2199
|
# other files, like Google Docs or Sheets, and the last remaining file version
|
2295
|
-
# can't be deleted.
|
2200
|
+
# can't be deleted. For more information, see [Manage file revisions](https://
|
2201
|
+
# developers.google.com/drive/api/guides/manage-revisions).
|
2296
2202
|
# @param [String] file_id
|
2297
2203
|
# The ID of the file.
|
2298
2204
|
# @param [String] revision_id
|
@@ -2323,7 +2229,9 @@ module Google
|
|
2323
2229
|
execute_or_queue_command(command, &block)
|
2324
2230
|
end
|
2325
2231
|
|
2326
|
-
# Gets a revision's metadata or content by ID.
|
2232
|
+
# Gets a revision's metadata or content by ID. For more information, see [Manage
|
2233
|
+
# file revisions](https://developers.google.com/workspace/drive/api/guides/
|
2234
|
+
# manage-revisions).
|
2327
2235
|
# @param [String] file_id
|
2328
2236
|
# The ID of the file.
|
2329
2237
|
# @param [String] revision_id
|
@@ -2369,7 +2277,8 @@ module Google
|
|
2369
2277
|
execute_or_queue_command(command, &block)
|
2370
2278
|
end
|
2371
2279
|
|
2372
|
-
# Lists a file's revisions.
|
2280
|
+
# Lists a file's revisions. For more information, see [Manage file revisions](
|
2281
|
+
# https://developers.google.com/workspace/drive/api/guides/manage-revisions).
|
2373
2282
|
# @param [String] file_id
|
2374
2283
|
# The ID of the file.
|
2375
2284
|
# @param [Fixnum] page_size
|
@@ -2406,7 +2315,9 @@ module Google
|
|
2406
2315
|
execute_or_queue_command(command, &block)
|
2407
2316
|
end
|
2408
2317
|
|
2409
|
-
# Updates a revision with patch semantics.
|
2318
|
+
# Updates a revision with patch semantics. For more information, see [Manage
|
2319
|
+
# file revisions](https://developers.google.com/workspace/drive/api/guides/
|
2320
|
+
# manage-revisions).
|
2410
2321
|
# @param [String] file_id
|
2411
2322
|
# The ID of the file.
|
2412
2323
|
# @param [String] revision_id
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.69.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-drive_v3/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.69.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-drive_v3
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|