google-apis-drive_v3 0.74.0 → 0.76.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f9f6fbf57a6724233a898c849e9b3cefddcbae4424d2dfe850e9a714d12b2039
4
- data.tar.gz: 49b78f91230580f288fcc1cfacd782f8a675a417951fa81ecc2bb279ff7d7f84
3
+ metadata.gz: 4aeb8c83c4dd28e0ebdbb92be509281a268813ce8cc84c738fafaab39fd92cb5
4
+ data.tar.gz: 507f0a85f0d3212c7705460a4d525b658398b934501ae0922784ef5ae24781bb
5
5
  SHA512:
6
- metadata.gz: f267af862a58dc42f26a5339edeb99fd990c373bc5a05a12db18c8721a5d1660c53a93413a363161e17290de9bd6099db7435804ce2ae8f47e285a8e90bf6b1c
7
- data.tar.gz: 0f1bdf5f70ebd58bb466fcff1417a697a76dba37cf4c1c09b2c13771765149f2c4c22e0ea2e7423c7f75c56967132f24e5c9ceecbbe90aea712f604ec6c18629
6
+ metadata.gz: 8b3441dac4d18a17d9eb24519e229eb07c36320b9a6f7e88373745700e0e33055808fdaae84bdc2e9a4d2be0e702b5191bfbc9fba39f0887ec2bd896da70e8d1
7
+ data.tar.gz: f240a036c4b13d8188ab67b120f21490d66c725ff5ad32abe8632a70943927ece23a7e48a4570f2f4a2ccfcb6f6399d6166d9aac65592ebb3beb065285e89db8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-drive_v3
2
2
 
3
+ ### v0.76.0 (2025-12-14)
4
+
5
+ * Regenerated from discovery document revision 20251210
6
+
7
+ ### v0.75.0 (2025-12-07)
8
+
9
+ * Regenerated from discovery document revision 20251201
10
+
3
11
  ### v0.74.0 (2025-11-23)
4
12
 
5
13
  * Regenerated from discovery document revision 20251114
@@ -561,6 +561,116 @@ module Google
561
561
  end
562
562
  end
563
563
 
564
+ # Metadata for an approval. An approval is a review/approve process for a Drive
565
+ # item.
566
+ class Approval
567
+ include Google::Apis::Core::Hashable
568
+
569
+ # The Approval ID.
570
+ # Corresponds to the JSON property `approvalId`
571
+ # @return [String]
572
+ attr_accessor :approval_id
573
+
574
+ # Output only. The time time the approval was completed.
575
+ # Corresponds to the JSON property `completeTime`
576
+ # @return [String]
577
+ attr_accessor :complete_time
578
+
579
+ # Output only. The time the approval was created.
580
+ # Corresponds to the JSON property `createTime`
581
+ # @return [String]
582
+ attr_accessor :create_time
583
+
584
+ # The time that the approval is due.
585
+ # Corresponds to the JSON property `dueTime`
586
+ # @return [String]
587
+ attr_accessor :due_time
588
+
589
+ # Information about a Drive user.
590
+ # Corresponds to the JSON property `initiator`
591
+ # @return [Google::Apis::DriveV3::User]
592
+ attr_accessor :initiator
593
+
594
+ # This is always drive#approval.
595
+ # Corresponds to the JSON property `kind`
596
+ # @return [String]
597
+ attr_accessor :kind
598
+
599
+ # Output only. The most recent time the approval was modified.
600
+ # Corresponds to the JSON property `modifyTime`
601
+ # @return [String]
602
+ attr_accessor :modify_time
603
+
604
+ # The responses made on the Approval by reviewers.
605
+ # Corresponds to the JSON property `reviewerResponses`
606
+ # @return [Array<Google::Apis::DriveV3::ReviewerResponse>]
607
+ attr_accessor :reviewer_responses
608
+
609
+ # Output only. The status of the approval at the time this resource was
610
+ # requested.
611
+ # Corresponds to the JSON property `status`
612
+ # @return [String]
613
+ attr_accessor :status
614
+
615
+ # Target file id of the approval.
616
+ # Corresponds to the JSON property `targetFileId`
617
+ # @return [String]
618
+ attr_accessor :target_file_id
619
+
620
+ def initialize(**args)
621
+ update!(**args)
622
+ end
623
+
624
+ # Update properties of this object
625
+ def update!(**args)
626
+ @approval_id = args[:approval_id] if args.key?(:approval_id)
627
+ @complete_time = args[:complete_time] if args.key?(:complete_time)
628
+ @create_time = args[:create_time] if args.key?(:create_time)
629
+ @due_time = args[:due_time] if args.key?(:due_time)
630
+ @initiator = args[:initiator] if args.key?(:initiator)
631
+ @kind = args[:kind] if args.key?(:kind)
632
+ @modify_time = args[:modify_time] if args.key?(:modify_time)
633
+ @reviewer_responses = args[:reviewer_responses] if args.key?(:reviewer_responses)
634
+ @status = args[:status] if args.key?(:status)
635
+ @target_file_id = args[:target_file_id] if args.key?(:target_file_id)
636
+ end
637
+ end
638
+
639
+ # The response of an Approvals list request.
640
+ class ApprovalList
641
+ include Google::Apis::Core::Hashable
642
+
643
+ # The list of Approvals. If nextPageToken is populated, then this list may be
644
+ # incomplete and an additional page of results should be fetched.
645
+ # Corresponds to the JSON property `items`
646
+ # @return [Array<Google::Apis::DriveV3::Approval>]
647
+ attr_accessor :items
648
+
649
+ # This is always drive#approvalList
650
+ # Corresponds to the JSON property `kind`
651
+ # @return [String]
652
+ attr_accessor :kind
653
+
654
+ # The page token for the next page of Approvals. This will be absent if the end
655
+ # of the Approvals list has been reached. If the token is rejected for any
656
+ # reason, it should be discarded, and pagination should be restarted from the
657
+ # first page of results.
658
+ # Corresponds to the JSON property `nextPageToken`
659
+ # @return [String]
660
+ attr_accessor :next_page_token
661
+
662
+ def initialize(**args)
663
+ update!(**args)
664
+ end
665
+
666
+ # Update properties of this object
667
+ def update!(**args)
668
+ @items = args[:items] if args.key?(:items)
669
+ @kind = args[:kind] if args.key?(:kind)
670
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
671
+ end
672
+ end
673
+
564
674
  # A change to a file or shared drive.
565
675
  class Change
566
676
  include Google::Apis::Core::Hashable
@@ -3433,8 +3543,8 @@ module Google
3433
3543
  class Reply
3434
3544
  include Google::Apis::Core::Hashable
3435
3545
 
3436
- # The action the reply performed to the parent comment. Valid values are: * `
3437
- # resolve` * `reopen`
3546
+ # The action the reply performed to the parent comment. The supported values are:
3547
+ # * `resolve` * `reopen`
3438
3548
  # Corresponds to the JSON property `action`
3439
3549
  # @return [String]
3440
3550
  attr_accessor :action
@@ -3451,8 +3561,8 @@ module Google
3451
3561
  attr_accessor :author
3452
3562
 
3453
3563
  # The plain text content of the reply. This field is used for setting the
3454
- # content, while `htmlContent` should be displayed. This is required on creates
3455
- # if no `action` is specified.
3564
+ # content, while `htmlContent` should be displayed. This field is required by
3565
+ # the `create` method if no `action` value is specified.
3456
3566
  # Corresponds to the JSON property `content`
3457
3567
  # @return [String]
3458
3568
  attr_accessor :content
@@ -3535,7 +3645,7 @@ module Google
3535
3645
  # @return [String]
3536
3646
  attr_accessor :next_page_token
3537
3647
 
3538
- # The list of replies. If nextPageToken is populated, then this list may be
3648
+ # The list of replies. If `nextPageToken` is populated, then this list may be
3539
3649
  # incomplete and an additional page of results should be fetched.
3540
3650
  # Corresponds to the JSON property `replies`
3541
3651
  # @return [Array<Google::Apis::DriveV3::Reply>]
@@ -3596,6 +3706,37 @@ module Google
3596
3706
  end
3597
3707
  end
3598
3708
 
3709
+ # A response on an Approval made by a specific Reviewer.
3710
+ class ReviewerResponse
3711
+ include Google::Apis::Core::Hashable
3712
+
3713
+ # This is always drive#reviewerResponse.
3714
+ # Corresponds to the JSON property `kind`
3715
+ # @return [String]
3716
+ attr_accessor :kind
3717
+
3718
+ # A Reviewer’s Response for the Approval.
3719
+ # Corresponds to the JSON property `response`
3720
+ # @return [String]
3721
+ attr_accessor :response
3722
+
3723
+ # Information about a Drive user.
3724
+ # Corresponds to the JSON property `reviewer`
3725
+ # @return [Google::Apis::DriveV3::User]
3726
+ attr_accessor :reviewer
3727
+
3728
+ def initialize(**args)
3729
+ update!(**args)
3730
+ end
3731
+
3732
+ # Update properties of this object
3733
+ def update!(**args)
3734
+ @kind = args[:kind] if args.key?(:kind)
3735
+ @response = args[:response] if args.key?(:response)
3736
+ @reviewer = args[:reviewer] if args.key?(:reviewer)
3737
+ end
3738
+ end
3739
+
3599
3740
  # The metadata for a revision to a file. Some resource methods (such as `
3600
3741
  # revisions.update`) require a `revisionId`. Use the `revisions.list` method to
3601
3742
  # retrieve the ID for a revision.
@@ -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.74.0"
19
+ GEM_VERSION = "0.76.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 = "20251114"
25
+ REVISION = "20251210"
26
26
  end
27
27
  end
28
28
  end
@@ -76,6 +76,18 @@ module Google
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
+ class Approval
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class ApprovalList
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
79
91
  class Change
80
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
93
 
@@ -328,6 +340,12 @@ module Google
328
340
  include Google::Apis::Core::JsonObjectSupport
329
341
  end
330
342
 
343
+ class ReviewerResponse
344
+ class Representation < Google::Apis::Core::JsonRepresentation; end
345
+
346
+ include Google::Apis::Core::JsonObjectSupport
347
+ end
348
+
331
349
  class Revision
332
350
  class Representation < Google::Apis::Core::JsonRepresentation; end
333
351
 
@@ -520,6 +538,34 @@ module Google
520
538
  end
521
539
  end
522
540
 
541
+ class Approval
542
+ # @private
543
+ class Representation < Google::Apis::Core::JsonRepresentation
544
+ property :approval_id, as: 'approvalId'
545
+ property :complete_time, as: 'completeTime'
546
+ property :create_time, as: 'createTime'
547
+ property :due_time, as: 'dueTime'
548
+ property :initiator, as: 'initiator', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation
549
+
550
+ property :kind, as: 'kind'
551
+ property :modify_time, as: 'modifyTime'
552
+ collection :reviewer_responses, as: 'reviewerResponses', class: Google::Apis::DriveV3::ReviewerResponse, decorator: Google::Apis::DriveV3::ReviewerResponse::Representation
553
+
554
+ property :status, as: 'status'
555
+ property :target_file_id, as: 'targetFileId'
556
+ end
557
+ end
558
+
559
+ class ApprovalList
560
+ # @private
561
+ class Representation < Google::Apis::Core::JsonRepresentation
562
+ collection :items, as: 'items', class: Google::Apis::DriveV3::Approval, decorator: Google::Apis::DriveV3::Approval::Representation
563
+
564
+ property :kind, as: 'kind'
565
+ property :next_page_token, as: 'nextPageToken'
566
+ end
567
+ end
568
+
523
569
  class Change
524
570
  # @private
525
571
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1171,6 +1217,16 @@ module Google
1171
1217
  end
1172
1218
  end
1173
1219
 
1220
+ class ReviewerResponse
1221
+ # @private
1222
+ class Representation < Google::Apis::Core::JsonRepresentation
1223
+ property :kind, as: 'kind'
1224
+ property :response, as: 'response'
1225
+ property :reviewer, as: 'reviewer', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation
1226
+
1227
+ end
1228
+ end
1229
+
1174
1230
  class Revision
1175
1231
  # @private
1176
1232
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -192,6 +192,77 @@ module Google
192
192
  execute_or_queue_command(command, &block)
193
193
  end
194
194
 
195
+ # Gets an Approval by ID.
196
+ # @param [String] file_id
197
+ # Required. The ID of the file the Approval is on.
198
+ # @param [String] approval_id
199
+ # Required. The ID of the Approval.
200
+ # @param [String] fields
201
+ # Selector specifying which fields to include in a partial response.
202
+ # @param [String] quota_user
203
+ # Available to use for quota purposes for server-side applications. Can be any
204
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
205
+ # @param [Google::Apis::RequestOptions] options
206
+ # Request-specific options
207
+ #
208
+ # @yield [result, err] Result & error if block supplied
209
+ # @yieldparam result [Google::Apis::DriveV3::Approval] parsed result object
210
+ # @yieldparam err [StandardError] error object if request failed
211
+ #
212
+ # @return [Google::Apis::DriveV3::Approval]
213
+ #
214
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
215
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
216
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
217
+ def get_approval(file_id, approval_id, fields: nil, quota_user: nil, options: nil, &block)
218
+ command = make_simple_command(:get, 'files/{fileId}/approvals/{approvalId}', options)
219
+ command.response_representation = Google::Apis::DriveV3::Approval::Representation
220
+ command.response_class = Google::Apis::DriveV3::Approval
221
+ command.params['fileId'] = file_id unless file_id.nil?
222
+ command.params['approvalId'] = approval_id unless approval_id.nil?
223
+ command.query['fields'] = fields unless fields.nil?
224
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
225
+ execute_or_queue_command(command, &block)
226
+ end
227
+
228
+ # Lists the Approvals on a file.
229
+ # @param [String] file_id
230
+ # Required. The ID of the file the Approval is on.
231
+ # @param [Fixnum] page_size
232
+ # The maximum number of Approvals to return. When not set, at most 100 Approvals
233
+ # will be returned.
234
+ # @param [String] page_token
235
+ # The token for continuing a previous list request on the next page. This should
236
+ # be set to the value of nextPageToken from a previous response.
237
+ # @param [String] fields
238
+ # Selector specifying which fields to include in a partial response.
239
+ # @param [String] quota_user
240
+ # Available to use for quota purposes for server-side applications. Can be any
241
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
242
+ # @param [Google::Apis::RequestOptions] options
243
+ # Request-specific options
244
+ #
245
+ # @yield [result, err] Result & error if block supplied
246
+ # @yieldparam result [Google::Apis::DriveV3::ApprovalList] parsed result object
247
+ # @yieldparam err [StandardError] error object if request failed
248
+ #
249
+ # @return [Google::Apis::DriveV3::ApprovalList]
250
+ #
251
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
252
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
253
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
254
+ def list_approvals(file_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
255
+ command = make_simple_command(:get, 'files/{fileId}/approvals', options)
256
+ command.response_representation = Google::Apis::DriveV3::ApprovalList::Representation
257
+ command.response_class = Google::Apis::DriveV3::ApprovalList
258
+ command.params['fileId'] = file_id unless file_id.nil?
259
+ command.query['pageSize'] = page_size unless page_size.nil?
260
+ command.query['pageToken'] = page_token unless page_token.nil?
261
+ command.query['fields'] = fields unless fields.nil?
262
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
263
+ execute_or_queue_command(command, &block)
264
+ end
265
+
195
266
  # Gets a specific app. For more information, see [Return user info](https://
196
267
  # developers.google.com/workspace/drive/api/guides/user-info).
197
268
  # @param [String] app_id
@@ -2062,7 +2133,9 @@ module Google
2062
2133
  execute_or_queue_command(command, &block)
2063
2134
  end
2064
2135
 
2065
- # Creates a reply to a comment.
2136
+ # Creates a reply to a comment. For more information, see [Manage comments and
2137
+ # replies](https://developers.google.com/workspace/drive/api/guides/manage-
2138
+ # comments).
2066
2139
  # @param [String] file_id
2067
2140
  # The ID of the file.
2068
2141
  # @param [String] comment_id
@@ -2098,7 +2171,8 @@ module Google
2098
2171
  execute_or_queue_command(command, &block)
2099
2172
  end
2100
2173
 
2101
- # Deletes a reply.
2174
+ # Deletes a reply. For more information, see [Manage comments and replies](https:
2175
+ # //developers.google.com/workspace/drive/api/guides/manage-comments).
2102
2176
  # @param [String] file_id
2103
2177
  # The ID of the file.
2104
2178
  # @param [String] comment_id
@@ -2132,7 +2206,8 @@ module Google
2132
2206
  execute_or_queue_command(command, &block)
2133
2207
  end
2134
2208
 
2135
- # Gets a reply by ID.
2209
+ # Gets a reply by ID. For more information, see [Manage comments and replies](
2210
+ # https://developers.google.com/workspace/drive/api/guides/manage-comments).
2136
2211
  # @param [String] file_id
2137
2212
  # The ID of the file.
2138
2213
  # @param [String] comment_id
@@ -2140,7 +2215,7 @@ module Google
2140
2215
  # @param [String] reply_id
2141
2216
  # The ID of the reply.
2142
2217
  # @param [Boolean] include_deleted
2143
- # Whether to return deleted replies. Deleted replies will not include their
2218
+ # Whether to return deleted replies. Deleted replies don't include their
2144
2219
  # original content.
2145
2220
  # @param [String] fields
2146
2221
  # Selector specifying which fields to include in a partial response.
@@ -2172,19 +2247,21 @@ module Google
2172
2247
  execute_or_queue_command(command, &block)
2173
2248
  end
2174
2249
 
2175
- # Lists a comment's replies.
2250
+ # Lists a comment's replies. For more information, see [Manage comments and
2251
+ # replies](https://developers.google.com/workspace/drive/api/guides/manage-
2252
+ # comments).
2176
2253
  # @param [String] file_id
2177
2254
  # The ID of the file.
2178
2255
  # @param [String] comment_id
2179
2256
  # The ID of the comment.
2180
2257
  # @param [Boolean] include_deleted
2181
- # Whether to include deleted replies. Deleted replies will not include their
2258
+ # Whether to include deleted replies. Deleted replies don't include their
2182
2259
  # original content.
2183
2260
  # @param [Fixnum] page_size
2184
2261
  # The maximum number of replies to return per page.
2185
2262
  # @param [String] page_token
2186
2263
  # The token for continuing a previous list request on the next page. This should
2187
- # be set to the value of 'nextPageToken' from the previous response.
2264
+ # be set to the value of `nextPageToken` from the previous response.
2188
2265
  # @param [String] fields
2189
2266
  # Selector specifying which fields to include in a partial response.
2190
2267
  # @param [String] quota_user
@@ -2216,7 +2293,9 @@ module Google
2216
2293
  execute_or_queue_command(command, &block)
2217
2294
  end
2218
2295
 
2219
- # Updates a reply with patch semantics.
2296
+ # Updates a reply with patch semantics. For more information, see [Manage
2297
+ # comments and replies](https://developers.google.com/workspace/drive/api/guides/
2298
+ # manage-comments).
2220
2299
  # @param [String] file_id
2221
2300
  # The ID of the file.
2222
2301
  # @param [String] comment_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.74.0
4
+ version: 0.76.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.74.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.76.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: