google-apis-drive_v2 0.51.0 → 0.53.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 +10 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/drive_v2/classes.rb +32 -34
- data/lib/google/apis/drive_v2/gem_version.rb +3 -3
- data/lib/google/apis/drive_v2/service.rb +4 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2fa0ac68abfee89e8fdc0d5bbd607e07b598805d39f02cc52fddcc373c663b53
|
4
|
+
data.tar.gz: a36f2359c9a818b560f3da5c9d9f9ae0debee380ae68bacafdc2fd33d3557938
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a260f27a8e1815dc0f0550b9db24060c1a0e20c3ad276af4be7ef59d1b32c1d37429ef9cbd5471ce34289ff1a854ff834bc954c8c3a7a8802ecf636ce2c39c60
|
7
|
+
data.tar.gz: fa5a35081dfb4ef085b4d540c388fe5437e8ba413982e0828f63ce9c4e00fd5cc43e2e5a4e0d08610d746ae5aba72a90a308d76a2ca9841279a509c57be3da97
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# Release history for google-apis-drive_v2
|
2
2
|
|
3
|
+
### v0.53.0 (2025-08-31)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250826
|
6
|
+
* Regenerated using generator version 0.18.0
|
7
|
+
|
8
|
+
### v0.52.0 (2025-05-18)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20250506
|
11
|
+
* Regenerated using generator version 0.17.0
|
12
|
+
|
3
13
|
### v0.51.0 (2025-04-27)
|
4
14
|
|
5
15
|
* Regenerated from discovery document revision 20250419
|
data/OVERVIEW.md
CHANGED
@@ -83,7 +83,7 @@ The [product documentation](https://developers.google.com/workspace/drive/) may
|
|
83
83
|
|
84
84
|
## Supported Ruby versions
|
85
85
|
|
86
|
-
This library is supported on Ruby
|
86
|
+
This library is supported on Ruby 3.1+.
|
87
87
|
|
88
88
|
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
|
89
89
|
|
@@ -1035,15 +1035,13 @@ module Google
|
|
1035
1035
|
end
|
1036
1036
|
end
|
1037
1037
|
|
1038
|
-
# A comment on a file in Google Drive.
|
1039
|
-
# update`) require a `commentId`. Use the `comments.list` method to retrieve the
|
1040
|
-
# ID for a comment in a file.
|
1038
|
+
# A comment on a file in Google Drive.
|
1041
1039
|
class Comment
|
1042
1040
|
include Google::Apis::Core::Hashable
|
1043
1041
|
|
1044
1042
|
# A region of the document represented as a JSON string. For details on defining
|
1045
|
-
# anchor properties, refer to [
|
1046
|
-
# google.com/workspace/drive/api/
|
1043
|
+
# anchor properties, refer to [Manage comments and replies](https://developers.
|
1044
|
+
# google.com/workspace/drive/api/v3/manage-comments).
|
1047
1045
|
# Corresponds to the JSON property `anchor`
|
1048
1046
|
# @return [String]
|
1049
1047
|
attr_accessor :anchor
|
@@ -1053,7 +1051,7 @@ module Google
|
|
1053
1051
|
# @return [Google::Apis::DriveV2::User]
|
1054
1052
|
attr_accessor :author
|
1055
1053
|
|
1056
|
-
#
|
1054
|
+
# The ID of the comment.
|
1057
1055
|
# Corresponds to the JSON property `commentId`
|
1058
1056
|
# @return [String]
|
1059
1057
|
attr_accessor :comment_id
|
@@ -1064,7 +1062,7 @@ module Google
|
|
1064
1062
|
# @return [String]
|
1065
1063
|
attr_accessor :content
|
1066
1064
|
|
1067
|
-
#
|
1065
|
+
# Context of a file which is being commented on.
|
1068
1066
|
# Corresponds to the JSON property `context`
|
1069
1067
|
# @return [Google::Apis::DriveV2::Comment::Context]
|
1070
1068
|
attr_accessor :context
|
@@ -1074,30 +1072,30 @@ module Google
|
|
1074
1072
|
# @return [DateTime]
|
1075
1073
|
attr_accessor :created_date
|
1076
1074
|
|
1077
|
-
#
|
1078
|
-
#
|
1079
|
-
#
|
1075
|
+
# Whether this comment has been deleted. If a comment has been deleted the
|
1076
|
+
# content will be cleared and this will only represent a comment that once
|
1077
|
+
# existed.
|
1080
1078
|
# Corresponds to the JSON property `deleted`
|
1081
1079
|
# @return [Boolean]
|
1082
1080
|
attr_accessor :deleted
|
1083
1081
|
alias_method :deleted?, :deleted
|
1084
1082
|
|
1085
|
-
#
|
1083
|
+
# The file which this comment is addressing.
|
1086
1084
|
# Corresponds to the JSON property `fileId`
|
1087
1085
|
# @return [String]
|
1088
1086
|
attr_accessor :file_id
|
1089
1087
|
|
1090
|
-
#
|
1088
|
+
# The title of the file which this comment is addressing.
|
1091
1089
|
# Corresponds to the JSON property `fileTitle`
|
1092
1090
|
# @return [String]
|
1093
1091
|
attr_accessor :file_title
|
1094
1092
|
|
1095
|
-
#
|
1093
|
+
# HTML formatted content for this comment.
|
1096
1094
|
# Corresponds to the JSON property `htmlContent`
|
1097
1095
|
# @return [String]
|
1098
1096
|
attr_accessor :html_content
|
1099
1097
|
|
1100
|
-
#
|
1098
|
+
# This is always drive#comment.
|
1101
1099
|
# Corresponds to the JSON property `kind`
|
1102
1100
|
# @return [String]
|
1103
1101
|
attr_accessor :kind
|
@@ -1107,19 +1105,20 @@ module Google
|
|
1107
1105
|
# @return [DateTime]
|
1108
1106
|
attr_accessor :modified_date
|
1109
1107
|
|
1110
|
-
#
|
1108
|
+
# Replies to this post.
|
1111
1109
|
# Corresponds to the JSON property `replies`
|
1112
1110
|
# @return [Array<Google::Apis::DriveV2::CommentReply>]
|
1113
1111
|
attr_accessor :replies
|
1114
1112
|
|
1115
|
-
#
|
1113
|
+
# A link back to this comment.
|
1116
1114
|
# Corresponds to the JSON property `selfLink`
|
1117
1115
|
# @return [String]
|
1118
1116
|
attr_accessor :self_link
|
1119
1117
|
|
1120
|
-
#
|
1121
|
-
#
|
1122
|
-
# open. * `resolved` - The comment has been resolved by one of its
|
1118
|
+
# The status of this comment. Status can be changed by posting a reply to a
|
1119
|
+
# comment with the desired status. Possible values are: * `open` - The comment
|
1120
|
+
# is still open. * `resolved` - The comment has been resolved by one of its
|
1121
|
+
# replies.
|
1123
1122
|
# Corresponds to the JSON property `status`
|
1124
1123
|
# @return [String]
|
1125
1124
|
attr_accessor :status
|
@@ -1147,7 +1146,7 @@ module Google
|
|
1147
1146
|
@status = args[:status] if args.key?(:status)
|
1148
1147
|
end
|
1149
1148
|
|
1150
|
-
#
|
1149
|
+
# Context of a file which is being commented on.
|
1151
1150
|
class Context
|
1152
1151
|
include Google::Apis::Core::Hashable
|
1153
1152
|
|
@@ -1185,7 +1184,7 @@ module Google
|
|
1185
1184
|
# @return [Array<Google::Apis::DriveV2::Comment>]
|
1186
1185
|
attr_accessor :items
|
1187
1186
|
|
1188
|
-
# This is always
|
1187
|
+
# This is always drive#commentList.
|
1189
1188
|
# Corresponds to the JSON property `kind`
|
1190
1189
|
# @return [String]
|
1191
1190
|
attr_accessor :kind
|
@@ -1222,9 +1221,7 @@ module Google
|
|
1222
1221
|
end
|
1223
1222
|
end
|
1224
1223
|
|
1225
|
-
# A comment on a file in Google Drive.
|
1226
|
-
# update`) require a `replyId`. Use the `replies.list` method to retrieve the ID
|
1227
|
-
# for a reply.
|
1224
|
+
# A reply to a comment on a file in Google Drive.
|
1228
1225
|
class CommentReply
|
1229
1226
|
include Google::Apis::Core::Hashable
|
1230
1227
|
|
@@ -1245,20 +1242,19 @@ module Google
|
|
1245
1242
|
# @return [DateTime]
|
1246
1243
|
attr_accessor :created_date
|
1247
1244
|
|
1248
|
-
#
|
1249
|
-
#
|
1250
|
-
# existed.
|
1245
|
+
# Whether this reply has been deleted. If a reply has been deleted the content
|
1246
|
+
# will be cleared and this will only represent a reply that once existed.
|
1251
1247
|
# Corresponds to the JSON property `deleted`
|
1252
1248
|
# @return [Boolean]
|
1253
1249
|
attr_accessor :deleted
|
1254
1250
|
alias_method :deleted?, :deleted
|
1255
1251
|
|
1256
|
-
#
|
1252
|
+
# HTML formatted content for this reply.
|
1257
1253
|
# Corresponds to the JSON property `htmlContent`
|
1258
1254
|
# @return [String]
|
1259
1255
|
attr_accessor :html_content
|
1260
1256
|
|
1261
|
-
#
|
1257
|
+
# This is always drive#commentReply.
|
1262
1258
|
# Corresponds to the JSON property `kind`
|
1263
1259
|
# @return [String]
|
1264
1260
|
attr_accessor :kind
|
@@ -1268,13 +1264,13 @@ module Google
|
|
1268
1264
|
# @return [DateTime]
|
1269
1265
|
attr_accessor :modified_date
|
1270
1266
|
|
1271
|
-
#
|
1267
|
+
# The ID of the reply.
|
1272
1268
|
# Corresponds to the JSON property `replyId`
|
1273
1269
|
# @return [String]
|
1274
1270
|
attr_accessor :reply_id
|
1275
1271
|
|
1276
1272
|
# The action this reply performed to the parent comment. When creating a new
|
1277
|
-
# reply this is the action to be perform
|
1273
|
+
# reply this is the action to be perform tSo the parent comment. Possible values
|
1278
1274
|
# are: * `resolve` - To resolve a comment. * `reopen` - To reopen (un-resolve) a
|
1279
1275
|
# comment.
|
1280
1276
|
# Corresponds to the JSON property `verb`
|
@@ -4661,7 +4657,8 @@ module Google
|
|
4661
4657
|
# @return [String]
|
4662
4658
|
attr_accessor :display_name
|
4663
4659
|
|
4664
|
-
# Output only. The email address of the user.
|
4660
|
+
# Output only. The email address of the user. This may not be present in certain
|
4661
|
+
# contexts if the user has not made their email address visible to the requester.
|
4665
4662
|
# Corresponds to the JSON property `emailAddress`
|
4666
4663
|
# @return [String]
|
4667
4664
|
attr_accessor :email_address
|
@@ -4673,12 +4670,13 @@ module Google
|
|
4673
4670
|
attr_accessor :is_authenticated_user
|
4674
4671
|
alias_method :is_authenticated_user?, :is_authenticated_user
|
4675
4672
|
|
4676
|
-
# Output only.
|
4673
|
+
# Output only. Identifies what kind of resource this is. Value: the fixed string
|
4674
|
+
# `drive#user`.
|
4677
4675
|
# Corresponds to the JSON property `kind`
|
4678
4676
|
# @return [String]
|
4679
4677
|
attr_accessor :kind
|
4680
4678
|
|
4681
|
-
# Output only. The user's ID as visible in
|
4679
|
+
# Output only. The user's ID as visible in Permission resources.
|
4682
4680
|
# Corresponds to the JSON property `permissionId`
|
4683
4681
|
# @return [String]
|
4684
4682
|
attr_accessor :permission_id
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.53.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 = "20250826"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -2345,6 +2345,8 @@ module Google
|
|
2345
2345
|
# @param [Google::Apis::DriveV2::Permission] permission_object
|
2346
2346
|
# @param [String] email_message
|
2347
2347
|
# A plain text custom message to include in notification emails.
|
2348
|
+
# @param [Boolean] enforce_expansive_access
|
2349
|
+
# Whether the request should enforce expansive access rules.
|
2348
2350
|
# @param [Boolean] enforce_single_parent
|
2349
2351
|
# Deprecated: See `moveToNewOwnersRoot` for details.
|
2350
2352
|
# @param [Boolean] move_to_new_owners_root
|
@@ -2381,7 +2383,7 @@ module Google
|
|
2381
2383
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2382
2384
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2383
2385
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2384
|
-
def insert_permission(file_id, permission_object = nil, email_message: nil, enforce_single_parent: nil, move_to_new_owners_root: nil, send_notification_emails: nil, supports_all_drives: nil, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2386
|
+
def insert_permission(file_id, permission_object = nil, email_message: nil, enforce_expansive_access: nil, enforce_single_parent: nil, move_to_new_owners_root: nil, send_notification_emails: nil, supports_all_drives: nil, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2385
2387
|
command = make_simple_command(:post, 'files/{fileId}/permissions', options)
|
2386
2388
|
command.request_representation = Google::Apis::DriveV2::Permission::Representation
|
2387
2389
|
command.request_object = permission_object
|
@@ -2389,6 +2391,7 @@ module Google
|
|
2389
2391
|
command.response_class = Google::Apis::DriveV2::Permission
|
2390
2392
|
command.params['fileId'] = file_id unless file_id.nil?
|
2391
2393
|
command.query['emailMessage'] = email_message unless email_message.nil?
|
2394
|
+
command.query['enforceExpansiveAccess'] = enforce_expansive_access unless enforce_expansive_access.nil?
|
2392
2395
|
command.query['enforceSingleParent'] = enforce_single_parent unless enforce_single_parent.nil?
|
2393
2396
|
command.query['moveToNewOwnersRoot'] = move_to_new_owners_root unless move_to_new_owners_root.nil?
|
2394
2397
|
command.query['sendNotificationEmails'] = send_notification_emails unless send_notification_emails.nil?
|
metadata
CHANGED
@@ -1,13 +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.
|
4
|
+
version: 0.53.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: google-apis-core
|
@@ -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_v2/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v2/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v2/v0.53.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-drive_v2
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|
@@ -66,14 +66,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
66
66
|
requirements:
|
67
67
|
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '
|
69
|
+
version: '3.1'
|
70
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - ">="
|
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 V2
|
79
79
|
test_files: []
|