google-apis-drive_v3 0.66.0 → 0.68.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 +9 -0
- data/lib/google/apis/drive_v3/classes.rb +55 -25
- data/lib/google/apis/drive_v3/gem_version.rb +3 -3
- data/lib/google/apis/drive_v3/representations.rb +21 -15
- data/lib/google/apis/drive_v3/service.rb +0 -106
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 257acc6a67090afd4c31072bb22bf244fc63c0831c1efd1fcab78feade2dbb3d
|
4
|
+
data.tar.gz: 54a10dd6bc476513735f90a44f13ec4f8f1a761260e529337816fab94444149b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2289facb16657f062b2fdcdbf465e86fe5c3b895e5b46f2960cf5aa1bc21391d43414cf99edc1ab62f419928d718004c21061266906857cbbba1922c669cf02
|
7
|
+
data.tar.gz: b7d548a0f8c2bb28d4b64a36d810b8a3123a3747705a83fd5b3284aa8fbeaf73f58791c8f4119e017b307a46a771ee39983994e69abfcb8d9f03858d5374159a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-drive_v3
|
2
2
|
|
3
|
+
### v0.68.0 (2025-07-27)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250723
|
6
|
+
|
7
|
+
### v0.67.0 (2025-07-06)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20250701
|
10
|
+
* Regenerated using generator version 0.18.0
|
11
|
+
|
3
12
|
### v0.66.0 (2025-05-18)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20250511
|
@@ -1021,6 +1021,31 @@ module Google
|
|
1021
1021
|
end
|
1022
1022
|
end
|
1023
1023
|
|
1024
|
+
# Download restrictions applied to the file.
|
1025
|
+
class DownloadRestrictionsMetadata
|
1026
|
+
include Google::Apis::Core::Hashable
|
1027
|
+
|
1028
|
+
# A restriction for copy and download of the file.
|
1029
|
+
# Corresponds to the JSON property `effectiveDownloadRestrictionWithContext`
|
1030
|
+
# @return [Google::Apis::DriveV3::DownloadRestriction]
|
1031
|
+
attr_accessor :effective_download_restriction_with_context
|
1032
|
+
|
1033
|
+
# A restriction for copy and download of the file.
|
1034
|
+
# Corresponds to the JSON property `itemDownloadRestriction`
|
1035
|
+
# @return [Google::Apis::DriveV3::DownloadRestriction]
|
1036
|
+
attr_accessor :item_download_restriction
|
1037
|
+
|
1038
|
+
def initialize(**args)
|
1039
|
+
update!(**args)
|
1040
|
+
end
|
1041
|
+
|
1042
|
+
# Update properties of this object
|
1043
|
+
def update!(**args)
|
1044
|
+
@effective_download_restriction_with_context = args[:effective_download_restriction_with_context] if args.key?(:effective_download_restriction_with_context)
|
1045
|
+
@item_download_restriction = args[:item_download_restriction] if args.key?(:item_download_restriction)
|
1046
|
+
end
|
1047
|
+
end
|
1048
|
+
|
1024
1049
|
# Representation of a shared drive. Some resource methods (such as `drives.
|
1025
1050
|
# update`) require a `driveId`. Use the `drives.list` method to retrieve the ID
|
1026
1051
|
# for a shared drive.
|
@@ -1199,6 +1224,13 @@ module Google
|
|
1199
1224
|
attr_accessor :can_change_domain_users_only_restriction
|
1200
1225
|
alias_method :can_change_domain_users_only_restriction?, :can_change_domain_users_only_restriction
|
1201
1226
|
|
1227
|
+
# Output only. Whether the current user can change organizer-applied download
|
1228
|
+
# restrictions of this shared drive.
|
1229
|
+
# Corresponds to the JSON property `canChangeDownloadRestriction`
|
1230
|
+
# @return [Boolean]
|
1231
|
+
attr_accessor :can_change_download_restriction
|
1232
|
+
alias_method :can_change_download_restriction?, :can_change_download_restriction
|
1233
|
+
|
1202
1234
|
# Output only. Whether the current user can change the background of this shared
|
1203
1235
|
# drive.
|
1204
1236
|
# Corresponds to the JSON property `canChangeDriveBackground`
|
@@ -1324,6 +1356,7 @@ module Google
|
|
1324
1356
|
@can_add_children = args[:can_add_children] if args.key?(:can_add_children)
|
1325
1357
|
@can_change_copy_requires_writer_permission_restriction = args[:can_change_copy_requires_writer_permission_restriction] if args.key?(:can_change_copy_requires_writer_permission_restriction)
|
1326
1358
|
@can_change_domain_users_only_restriction = args[:can_change_domain_users_only_restriction] if args.key?(:can_change_domain_users_only_restriction)
|
1359
|
+
@can_change_download_restriction = args[:can_change_download_restriction] if args.key?(:can_change_download_restriction)
|
1327
1360
|
@can_change_drive_background = args[:can_change_drive_background] if args.key?(:can_change_drive_background)
|
1328
1361
|
@can_change_drive_members_only_restriction = args[:can_change_drive_members_only_restriction] if args.key?(:can_change_drive_members_only_restriction)
|
1329
1362
|
@can_change_sharing_folders_requires_organizer_permission_restriction = args[:can_change_sharing_folders_requires_organizer_permission_restriction] if args.key?(:can_change_sharing_folders_requires_organizer_permission_restriction)
|
@@ -1497,6 +1530,11 @@ module Google
|
|
1497
1530
|
# @return [String]
|
1498
1531
|
attr_accessor :description
|
1499
1532
|
|
1533
|
+
# Download restrictions applied to the file.
|
1534
|
+
# Corresponds to the JSON property `downloadRestrictions`
|
1535
|
+
# @return [Google::Apis::DriveV3::DownloadRestrictionsMetadata]
|
1536
|
+
attr_accessor :download_restrictions
|
1537
|
+
|
1500
1538
|
# Output only. ID of the shared drive the file resides in. Only populated for
|
1501
1539
|
# items in shared drives.
|
1502
1540
|
# Corresponds to the JSON property `driveId`
|
@@ -1866,6 +1904,7 @@ module Google
|
|
1866
1904
|
@copy_requires_writer_permission = args[:copy_requires_writer_permission] if args.key?(:copy_requires_writer_permission)
|
1867
1905
|
@created_time = args[:created_time] if args.key?(:created_time)
|
1868
1906
|
@description = args[:description] if args.key?(:description)
|
1907
|
+
@download_restrictions = args[:download_restrictions] if args.key?(:download_restrictions)
|
1869
1908
|
@drive_id = args[:drive_id] if args.key?(:drive_id)
|
1870
1909
|
@explicitly_trashed = args[:explicitly_trashed] if args.key?(:explicitly_trashed)
|
1871
1910
|
@export_links = args[:export_links] if args.key?(:export_links)
|
@@ -1966,6 +2005,13 @@ module Google
|
|
1966
2005
|
attr_accessor :can_change_copy_requires_writer_permission
|
1967
2006
|
alias_method :can_change_copy_requires_writer_permission?, :can_change_copy_requires_writer_permission
|
1968
2007
|
|
2008
|
+
# Output only. Whether the current user can change the owner or organizer-
|
2009
|
+
# applied download restrictions of the file.
|
2010
|
+
# Corresponds to the JSON property `canChangeItemDownloadRestriction`
|
2011
|
+
# @return [Boolean]
|
2012
|
+
attr_accessor :can_change_item_download_restriction
|
2013
|
+
alias_method :can_change_item_download_restriction?, :can_change_item_download_restriction
|
2014
|
+
|
1969
2015
|
# Output only. Whether the current user can change the securityUpdateEnabled
|
1970
2016
|
# field on link share metadata.
|
1971
2017
|
# Corresponds to the JSON property `canChangeSecurityUpdateEnabled`
|
@@ -2237,6 +2283,7 @@ module Google
|
|
2237
2283
|
@can_add_folder_from_another_drive = args[:can_add_folder_from_another_drive] if args.key?(:can_add_folder_from_another_drive)
|
2238
2284
|
@can_add_my_drive_parent = args[:can_add_my_drive_parent] if args.key?(:can_add_my_drive_parent)
|
2239
2285
|
@can_change_copy_requires_writer_permission = args[:can_change_copy_requires_writer_permission] if args.key?(:can_change_copy_requires_writer_permission)
|
2286
|
+
@can_change_item_download_restriction = args[:can_change_item_download_restriction] if args.key?(:can_change_item_download_restriction)
|
2240
2287
|
@can_change_security_update_enabled = args[:can_change_security_update_enabled] if args.key?(:can_change_security_update_enabled)
|
2241
2288
|
@can_change_viewers_can_copy_content = args[:can_change_viewers_can_copy_content] if args.key?(:can_change_viewers_can_copy_content)
|
2242
2289
|
@can_comment = args[:can_comment] if args.key?(:can_comment)
|
@@ -2970,31 +3017,6 @@ module Google
|
|
2970
3017
|
end
|
2971
3018
|
end
|
2972
3019
|
|
2973
|
-
# The response message for Operations.ListOperations.
|
2974
|
-
class ListOperationsResponse
|
2975
|
-
include Google::Apis::Core::Hashable
|
2976
|
-
|
2977
|
-
# The standard List next-page token.
|
2978
|
-
# Corresponds to the JSON property `nextPageToken`
|
2979
|
-
# @return [String]
|
2980
|
-
attr_accessor :next_page_token
|
2981
|
-
|
2982
|
-
# A list of operations that matches the specified filter in the request.
|
2983
|
-
# Corresponds to the JSON property `operations`
|
2984
|
-
# @return [Array<Google::Apis::DriveV3::Operation>]
|
2985
|
-
attr_accessor :operations
|
2986
|
-
|
2987
|
-
def initialize(**args)
|
2988
|
-
update!(**args)
|
2989
|
-
end
|
2990
|
-
|
2991
|
-
# Update properties of this object
|
2992
|
-
def update!(**args)
|
2993
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2994
|
-
@operations = args[:operations] if args.key?(:operations)
|
2995
|
-
end
|
2996
|
-
end
|
2997
|
-
|
2998
3020
|
# A request to modify the set of labels on a file. This request may contain many
|
2999
3021
|
# modifications that will either all succeed or all fail atomically.
|
3000
3022
|
class ModifyLabelsRequest
|
@@ -3910,6 +3932,13 @@ module Google
|
|
3910
3932
|
attr_accessor :can_change_domain_users_only_restriction
|
3911
3933
|
alias_method :can_change_domain_users_only_restriction?, :can_change_domain_users_only_restriction
|
3912
3934
|
|
3935
|
+
# Whether the current user can change organizer-applied download restrictions of
|
3936
|
+
# this shared drive.
|
3937
|
+
# Corresponds to the JSON property `canChangeDownloadRestriction`
|
3938
|
+
# @return [Boolean]
|
3939
|
+
attr_accessor :can_change_download_restriction
|
3940
|
+
alias_method :can_change_download_restriction?, :can_change_download_restriction
|
3941
|
+
|
3913
3942
|
# Whether the current user can change the `
|
3914
3943
|
# sharingFoldersRequiresOrganizerPermission` restriction of this Team Drive.
|
3915
3944
|
# Corresponds to the JSON property `canChangeSharingFoldersRequiresOrganizerPermissionRestriction`
|
@@ -4032,6 +4061,7 @@ module Google
|
|
4032
4061
|
@can_add_children = args[:can_add_children] if args.key?(:can_add_children)
|
4033
4062
|
@can_change_copy_requires_writer_permission_restriction = args[:can_change_copy_requires_writer_permission_restriction] if args.key?(:can_change_copy_requires_writer_permission_restriction)
|
4034
4063
|
@can_change_domain_users_only_restriction = args[:can_change_domain_users_only_restriction] if args.key?(:can_change_domain_users_only_restriction)
|
4064
|
+
@can_change_download_restriction = args[:can_change_download_restriction] if args.key?(:can_change_download_restriction)
|
4035
4065
|
@can_change_sharing_folders_requires_organizer_permission_restriction = args[:can_change_sharing_folders_requires_organizer_permission_restriction] if args.key?(:can_change_sharing_folders_requires_organizer_permission_restriction)
|
4036
4066
|
@can_change_team_drive_background = args[:can_change_team_drive_background] if args.key?(:can_change_team_drive_background)
|
4037
4067
|
@can_change_team_members_only_restriction = args[:can_change_team_members_only_restriction] if args.key?(:can_change_team_members_only_restriction)
|
@@ -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.68.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.18.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250723"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -124,6 +124,12 @@ module Google
|
|
124
124
|
include Google::Apis::Core::JsonObjectSupport
|
125
125
|
end
|
126
126
|
|
127
|
+
class DownloadRestrictionsMetadata
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
127
133
|
class Drive
|
128
134
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
135
|
|
@@ -262,12 +268,6 @@ module Google
|
|
262
268
|
include Google::Apis::Core::JsonObjectSupport
|
263
269
|
end
|
264
270
|
|
265
|
-
class ListOperationsResponse
|
266
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
267
|
-
|
268
|
-
include Google::Apis::Core::JsonObjectSupport
|
269
|
-
end
|
270
|
-
|
271
271
|
class ModifyLabelsRequest
|
272
272
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
273
273
|
|
@@ -632,6 +632,16 @@ module Google
|
|
632
632
|
end
|
633
633
|
end
|
634
634
|
|
635
|
+
class DownloadRestrictionsMetadata
|
636
|
+
# @private
|
637
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
638
|
+
property :effective_download_restriction_with_context, as: 'effectiveDownloadRestrictionWithContext', class: Google::Apis::DriveV3::DownloadRestriction, decorator: Google::Apis::DriveV3::DownloadRestriction::Representation
|
639
|
+
|
640
|
+
property :item_download_restriction, as: 'itemDownloadRestriction', class: Google::Apis::DriveV3::DownloadRestriction, decorator: Google::Apis::DriveV3::DownloadRestriction::Representation
|
641
|
+
|
642
|
+
end
|
643
|
+
end
|
644
|
+
|
635
645
|
class Drive
|
636
646
|
# @private
|
637
647
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -669,6 +679,7 @@ module Google
|
|
669
679
|
property :can_add_children, as: 'canAddChildren'
|
670
680
|
property :can_change_copy_requires_writer_permission_restriction, as: 'canChangeCopyRequiresWriterPermissionRestriction'
|
671
681
|
property :can_change_domain_users_only_restriction, as: 'canChangeDomainUsersOnlyRestriction'
|
682
|
+
property :can_change_download_restriction, as: 'canChangeDownloadRestriction'
|
672
683
|
property :can_change_drive_background, as: 'canChangeDriveBackground'
|
673
684
|
property :can_change_drive_members_only_restriction, as: 'canChangeDriveMembersOnlyRestriction'
|
674
685
|
property :can_change_sharing_folders_requires_organizer_permission_restriction, as: 'canChangeSharingFoldersRequiresOrganizerPermissionRestriction'
|
@@ -727,6 +738,8 @@ module Google
|
|
727
738
|
property :created_time, as: 'createdTime', type: DateTime
|
728
739
|
|
729
740
|
property :description, as: 'description'
|
741
|
+
property :download_restrictions, as: 'downloadRestrictions', class: Google::Apis::DriveV3::DownloadRestrictionsMetadata, decorator: Google::Apis::DriveV3::DownloadRestrictionsMetadata::Representation
|
742
|
+
|
730
743
|
property :drive_id, as: 'driveId'
|
731
744
|
property :explicitly_trashed, as: 'explicitlyTrashed'
|
732
745
|
hash :export_links, as: 'exportLinks'
|
@@ -808,6 +821,7 @@ module Google
|
|
808
821
|
property :can_add_folder_from_another_drive, as: 'canAddFolderFromAnotherDrive'
|
809
822
|
property :can_add_my_drive_parent, as: 'canAddMyDriveParent'
|
810
823
|
property :can_change_copy_requires_writer_permission, as: 'canChangeCopyRequiresWriterPermission'
|
824
|
+
property :can_change_item_download_restriction, as: 'canChangeItemDownloadRestriction'
|
811
825
|
property :can_change_security_update_enabled, as: 'canChangeSecurityUpdateEnabled'
|
812
826
|
property :can_change_viewers_can_copy_content, as: 'canChangeViewersCanCopyContent'
|
813
827
|
property :can_comment, as: 'canComment'
|
@@ -1030,15 +1044,6 @@ module Google
|
|
1030
1044
|
end
|
1031
1045
|
end
|
1032
1046
|
|
1033
|
-
class ListOperationsResponse
|
1034
|
-
# @private
|
1035
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1036
|
-
property :next_page_token, as: 'nextPageToken'
|
1037
|
-
collection :operations, as: 'operations', class: Google::Apis::DriveV3::Operation, decorator: Google::Apis::DriveV3::Operation::Representation
|
1038
|
-
|
1039
|
-
end
|
1040
|
-
end
|
1041
|
-
|
1042
1047
|
class ModifyLabelsRequest
|
1043
1048
|
# @private
|
1044
1049
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1247,6 +1252,7 @@ module Google
|
|
1247
1252
|
property :can_add_children, as: 'canAddChildren'
|
1248
1253
|
property :can_change_copy_requires_writer_permission_restriction, as: 'canChangeCopyRequiresWriterPermissionRestriction'
|
1249
1254
|
property :can_change_domain_users_only_restriction, as: 'canChangeDomainUsersOnlyRestriction'
|
1255
|
+
property :can_change_download_restriction, as: 'canChangeDownloadRestriction'
|
1250
1256
|
property :can_change_sharing_folders_requires_organizer_permission_restriction, as: 'canChangeSharingFoldersRequiresOrganizerPermissionRestriction'
|
1251
1257
|
property :can_change_team_drive_background, as: 'canChangeTeamDriveBackground'
|
1252
1258
|
property :can_change_team_members_only_restriction, as: 'canChangeTeamMembersOnlyRestriction'
|
@@ -1680,72 +1680,6 @@ module Google
|
|
1680
1680
|
execute_or_queue_command(command, &block)
|
1681
1681
|
end
|
1682
1682
|
|
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
1683
|
# Gets the latest state of a long-running operation. Clients can use this method
|
1750
1684
|
# to poll the operation result at intervals as recommended by the API service.
|
1751
1685
|
# @param [String] name
|
@@ -1777,46 +1711,6 @@ module Google
|
|
1777
1711
|
execute_or_queue_command(command, &block)
|
1778
1712
|
end
|
1779
1713
|
|
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
1714
|
# Creates a permission for a file or shared drive. **Warning:** Concurrent
|
1821
1715
|
# permissions operations on the same file are not supported; only the last
|
1822
1716
|
# update is applied.
|
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.68.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.68.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:
|
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
75
|
requirements: []
|
76
|
-
rubygems_version: 3.6.
|
76
|
+
rubygems_version: 3.6.9
|
77
77
|
specification_version: 4
|
78
78
|
summary: Simple REST client for Google Drive API V3
|
79
79
|
test_files: []
|